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

11 lines
222 B
TypeScript

// @target: es2015
const array = [];
for (let i = 0; i < 10; ++i) {
array.push(class C {
#myField = "hello";
#method() {}
get #accessor() { return 42; }
set #accessor(val) { }
});
}