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

8 lines
104 B
TypeScript

const arr = [];
for (let i = 0; i < 10; ++i) {
class C {
prop = i;
}
arr.push(C);
}