mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
378 B
Plaintext
12 lines
378 B
Plaintext
//// [tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts] ////
|
|
|
|
=== classExtendingPrimitive2.ts ===
|
|
// classes cannot extend primitives
|
|
|
|
class C4a extends void {}
|
|
>C4a : Symbol(C4a, Decl(classExtendingPrimitive2.ts, 0, 0))
|
|
|
|
class C5a extends null { }
|
|
>C5a : Symbol(C5a, Decl(classExtendingPrimitive2.ts, 2, 25))
|
|
|