swc/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.ts

14 lines
233 B
TypeScript

var x: {};
function foo() {
this.x = 1;
}
class C1 extends undefined { }
class C2 extends true { }
class C3 extends false { }
class C4 extends 42 { }
class C5 extends "hello" { }
class C6 extends x { }
class C7 extends foo { }