TypeScript/tests/baselines/reference/extendNonClassSymbol2.errors.txt
2014-09-12 13:35:07 -07:00

11 lines
411 B
Plaintext

tests/cases/compiler/extendNonClassSymbol2.ts(5,17): error TS2304: Cannot find name 'Foo'.
==== tests/cases/compiler/extendNonClassSymbol2.ts (1 errors) ====
function Foo() {
this.x = 1;
}
var x = new Foo(); // legal, considered a constructor function
class C extends Foo {} // error, could not find symbol Foo
~~~
!!! error TS2304: Cannot find name 'Foo'.