mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
423 B
TypeScript
24 lines
423 B
TypeScript
//// [tests/cases/conformance/es6/for-ofStatements/for-of47.ts] ////
|
|
|
|
//// [for-of47.ts]
|
|
var x: string, y: number;
|
|
var array = [{ x: "", y: true }]
|
|
enum E { x }
|
|
for ({x, y: y = E.x} of array) {
|
|
x;
|
|
y;
|
|
}
|
|
|
|
//// [for-of47.js]
|
|
"use strict";
|
|
var x, y;
|
|
var array = [{ x: "", y: true }];
|
|
var E;
|
|
(function (E) {
|
|
E[E["x"] = 0] = "x";
|
|
})(E || (E = {}));
|
|
for ({ x, y: y = E.x } of array) {
|
|
x;
|
|
y;
|
|
}
|