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

7 lines
112 B
TypeScript

function foo() {
return { x: 0 };
}
for (foo().x of []) {
for (foo().x of [])
var p = foo().x;
}