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

8 lines
132 B
TypeScript

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