28 lines
376 B
Plaintext
28 lines
376 B
Plaintext
=== tests/cases/conformance/es6/for-ofStatements/for-of58.ts ===
|
|
type X = { x: 'x' };
|
|
>X : X
|
|
>x : "x"
|
|
|
|
type Y = { y: 'y' };
|
|
>Y : Y
|
|
>y : "y"
|
|
|
|
declare const arr: X[] & Y[];
|
|
>arr : X[] & Y[]
|
|
|
|
for (const item of arr) {
|
|
>item : X & Y
|
|
>arr : X[] & Y[]
|
|
|
|
item.x;
|
|
>item.x : "x"
|
|
>item : X & Y
|
|
>x : "x"
|
|
|
|
item.y;
|
|
>item.y : "y"
|
|
>item : X & Y
|
|
>y : "y"
|
|
}
|
|
|