mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
24 lines
384 B
TypeScript
24 lines
384 B
TypeScript
// @target: es2015
|
|
|
|
class B {
|
|
static #foo = class {
|
|
constructor() {
|
|
console.log("hello");
|
|
new B.#foo2();
|
|
}
|
|
static test = 123;
|
|
field = 10;
|
|
};
|
|
static #foo2 = class Foo {
|
|
static otherClass = 123;
|
|
};
|
|
|
|
m() {
|
|
console.log(B.#foo.test)
|
|
B.#foo.test = 10;
|
|
new B.#foo().field;
|
|
}
|
|
}
|
|
|
|
|