swc/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.ts
2022-02-04 17:08:38 +09:00

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;
}
}