Files
tsgo/testdata/baselines/reference/submodule/conformance/for-of58.js

21 lines
313 B
TypeScript

//// [tests/cases/conformance/es6/for-ofStatements/for-of58.ts] ////
//// [for-of58.ts]
type X = { x: 'x' };
type Y = { y: 'y' };
declare const arr: X[] & Y[];
for (const item of arr) {
item.x;
item.y;
}
//// [for-of58.js]
"use strict";
for (const item of arr) {
item.x;
item.y;
}