38 lines
No EOL
2.2 KiB
Text
38 lines
No EOL
2.2 KiB
Text
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(7,18): error TS2507: Base expression is not of a constructor function type.
|
|
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(8,18): error TS2507: Base expression is not of a constructor function type.
|
|
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(9,18): error TS2507: Base expression is not of a constructor function type.
|
|
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(10,18): error TS2507: Base expression is not of a constructor function type.
|
|
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(11,18): error TS2507: Base expression is not of a constructor function type.
|
|
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(12,18): error TS2507: Base expression is not of a constructor function type.
|
|
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(13,18): error TS2507: Base expression is not of a constructor function type.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts (7 errors) ====
|
|
var x: {};
|
|
|
|
function foo() {
|
|
this.x = 1;
|
|
}
|
|
|
|
class C1 extends undefined { }
|
|
~~~~~~~~~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
class C2 extends true { }
|
|
~~~~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
class C3 extends false { }
|
|
~~~~~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
class C4 extends 42 { }
|
|
~~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
class C5 extends "hello" { }
|
|
~~~~~~~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
class C6 extends x { }
|
|
~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
class C7 extends foo { }
|
|
~~~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
|