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

19 lines
227 B
TypeScript

// @target: es2015
interface D {
x: number;
}
class C {
#x;
static test() {
new C().#x = 10;
const y = new C();
const z = new y();
z.x = 123;
}
}
interface C {
new (): D;
}