mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
429 B
Plaintext
11 lines
429 B
Plaintext
extendNonClassSymbol2.ts(5,17): error TS2507: Type '() => void' is not a constructor function type.
|
|
|
|
|
|
==== 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: Type '() => void' is not a constructor function type. |