18 lines
No EOL
1.2 KiB
Text
18 lines
No EOL
1.2 KiB
Text
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(1,18): error TS2507: Base expression is not of a constructor function type.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(1,25): error TS2304: Cannot find name 'string'.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(1,31): error TS1005: ',' expected.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(3,18): error TS2507: Base expression is not of a constructor function type.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts (4 errors) ====
|
|
class C2 extends { foo: string; } { } // error
|
|
~~~~~~~~~~~~~~~~
|
|
!!! error TS2507: Base expression is not of a constructor function type.
|
|
~~~~~~
|
|
!!! error TS2304: Cannot find name 'string'.
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
|
|
class C6 extends []{ } // error
|
|
~~
|
|
!!! error TS2507: Base expression is not of a constructor function type. |