swc/crates/swc_ecma_parser/tests/tsc/ES5For-of8.ts

7 lines
116 B
TypeScript

//@sourcemap: true
function foo() {
return { x: 0 };
}
for (foo().x of ['a', 'b', 'c']) {
var p = foo().x;
}