TypeScript/tests/cases/compiler/interfaceClassMerging2.ts
Mohamed Hegazy 8b8d33d8b8 Fix comments
2015-10-16 16:29:11 -07:00

36 lines
552 B
TypeScript

interface Foo {
interfaceFooMethod(): this;
interfaceFooProperty: this;
}
class Foo {
classFooProperty: this;
classFooMethod(): this {
return this;
}
}
interface Bar {
interfaceBarMethod(): this;
interfaceBarProperty: this;
}
class Bar extends Foo {
classBarProperty: this;
classBarMethod(): this {
return this;
}
}
var bar = new Bar();
bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod();
var foo = new Foo();
foo = bar;