This vastly improves our error tolerance and messages for when the user writes an illegal heritage clause sequence.
12 lines
No EOL
656 B
Text
12 lines
No EOL
656 B
Text
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(3,18): error TS1133: Type reference expected.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(3,20): error TS1005: ';' expected.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts (2 errors) ====
|
|
class C2 extends { foo: string; } { } // error
|
|
|
|
class C6 extends []{ } // error
|
|
~
|
|
!!! error TS1133: Type reference expected.
|
|
~
|
|
!!! error TS1005: ';' expected. |