mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
298 B
TypeScript
17 lines
298 B
TypeScript
//// [tests/cases/conformance/es6/for-ofStatements/for-of42.ts] ////
|
|
|
|
//// [for-of42.ts]
|
|
var array = [{ x: "", y: 0 }]
|
|
for (var {x: a, y: b} of array) {
|
|
a;
|
|
b;
|
|
}
|
|
|
|
//// [for-of42.js]
|
|
"use strict";
|
|
var array = [{ x: "", y: 0 }];
|
|
for (var { x: a, y: b } of array) {
|
|
a;
|
|
b;
|
|
}
|