mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
403 B
TypeScript
17 lines
403 B
TypeScript
//// [tests/cases/conformance/es6/for-ofStatements/for-of44.ts] ////
|
|
|
|
//// [for-of44.ts]
|
|
var array: [number, string | boolean | symbol][] = [[0, ""], [0, true], [1, Symbol()]]
|
|
for (var [num, strBoolSym] of array) {
|
|
num;
|
|
strBoolSym;
|
|
}
|
|
|
|
//// [for-of44.js]
|
|
"use strict";
|
|
var array = [[0, ""], [0, true], [1, Symbol()]];
|
|
for (var [num, strBoolSym] of array) {
|
|
num;
|
|
strBoolSym;
|
|
}
|