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

6 lines
106 B
TypeScript

//@target: ES6
var array = [{ x: "", y: 0 }]
for (var {x: a = "", y: b = true} of array) {
a;
b;
}