TypeScript/tests/cases/conformance/es6/for-ofStatements/for-of43.ts

6 lines
114 B
TypeScript
Raw Normal View History

2015-02-26 03:56:12 +01:00
//@target: ES6
var array = [{ x: "", y: 0 }]
for (var {x: a = "", y: b = true} of array) {
a;
b;
}