11 lines
No EOL
473 B
Text
11 lines
No EOL
473 B
Text
tests/cases/compiler/extendNonClassSymbol2.ts(5,17): error TS2507: Base expression is not of a constructor function type.
|
|
|
|
|
|
==== 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 TS2507: Base expression is not of a constructor function type. |