2014-12-01 00:38:45 +01:00
|
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts(3,19): error TS1133: Type reference expected.
|
|
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts(4,19): error TS1133: Type reference expected.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts(4,24): error TS1005: ';' expected.
|
|
|
|
|
|
|
|
|
2014-07-15 01:47:50 +02:00
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts (3 errors) ====
|
|
|
|
// classes cannot extend primitives
|
|
|
|
|
|
|
|
class C4a extends void {}
|
|
|
|
~~~~
|
2014-12-01 00:38:45 +01:00
|
|
|
!!! error TS1133: Type reference expected.
|
2014-07-15 01:47:50 +02:00
|
|
|
class C5a extends null { }
|
|
|
|
~~~~
|
2014-12-01 00:38:45 +01:00
|
|
|
!!! error TS1133: Type reference expected.
|
2014-07-15 01:47:50 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ';' expected.
|