9 lines
206 B
TypeScript
9 lines
206 B
TypeScript
//// [ES5For-ofTypeCheck6.ts]
|
|
var union: string[] | number[];
|
|
for (var v of union) { }
|
|
|
|
//// [ES5For-ofTypeCheck6.js]
|
|
var union;
|
|
for (var _i = 0; _i < union.length; _i++) {
|
|
var v = union[_i];
|
|
}
|