mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
313 B
TypeScript
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;
|
|
}
|