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

11 lines
179 B
TypeScript

let obj: number[];
let x: string | number | boolean | RegExp;
function a() {
x = true;
for (x of obj) {
x = x.toExponential();
}
x; // string | boolean
}