swc/crates/swc_ecma_parser/tests/tsc/classDeclarationLoop.ts

8 lines
104 B
TypeScript
Raw Normal View History

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