TypeScript/tests/baselines/reference/ES5For-ofTypeCheck6.js
2015-03-11 16:34:18 -07:00

10 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];
}