mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
19 lines
227 B
TypeScript
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;
|
|
}
|
|
|