TypeScript/tests/cases/compiler/extendNonClassSymbol2.ts
2014-07-12 17:30:19 -07:00

5 lines
159 B
TypeScript

function Foo() {
this.x = 1;
}
var x = new Foo(); // legal, considered a constructor function
class C extends Foo {} // error, could not find symbol Foo