11 lines
392 B
Text
11 lines
392 B
Text
|
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts (3 errors) ====
|
||
|
// classes cannot extend primitives
|
||
|
|
||
|
class C4a extends void {}
|
||
|
~~~~
|
||
|
!!! Identifier expected.
|
||
|
class C5a extends null { }
|
||
|
~~~~
|
||
|
!!! Identifier expected.
|
||
|
~
|
||
|
!!! ';' expected.
|