swc/crates/swc_ecma_parser/tests/tsc/for-of47.ts

8 lines
135 B
TypeScript

//@target: ES6
var x: string, y: number;
var array = [{ x: "", y: true }]
enum E { x }
for ({x, y: y = E.x} of array) {
x;
y;
}