swc/crates/swc_ecma_parser/tests/tsc/for-of58.ts

11 lines
142 B
TypeScript

// @target: es6
type X = { x: 'x' };
type Y = { y: 'y' };
declare const arr: X[] & Y[];
for (const item of arr) {
item.x;
item.y;
}