28 lines
380 B
JavaScript
28 lines
380 B
JavaScript
//// [for-of48.ts]
|
|
var x: string, y: number;
|
|
var array = [{ x: "", y: true }]
|
|
enum E { x }
|
|
for ({x, y = E.x} of array) {
|
|
x;
|
|
y;
|
|
}
|
|
|
|
//// [for-of48.js]
|
|
var x, y;
|
|
var array = [
|
|
{
|
|
x: "",
|
|
y: true
|
|
}
|
|
];
|
|
var E;
|
|
(function (E) {
|
|
E[E["x"] = 0] = "x";
|
|
})(E || (E = {}));
|
|
for ({
|
|
x,
|
|
y: = 0 /* x */
|
|
} of array) {
|
|
x;
|
|
y;
|
|
}
|