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

20 lines
194 B
TypeScript

class C {
}
var c: C;
var o: {} = c;
c = 1;
c = { foo: '' }
c = () => { }
class D {
constructor() {
return 1;
}
}
var d: D;
var o: {} = d;
d = 1;
d = { foo: '' }
d = () => { }