|
| 1 | +=== tests/cases/conformance/es6/for-ofStatements/for-of58.ts === |
| 2 | +type X = { x: 'x' }; |
| 3 | +>X : Symbol(X, Decl(for-of58.ts, 0, 0)) |
| 4 | +>x : Symbol(x, Decl(for-of58.ts, 0, 10)) |
| 5 | + |
| 6 | +type Y = { y: 'y' }; |
| 7 | +>Y : Symbol(Y, Decl(for-of58.ts, 0, 20)) |
| 8 | +>y : Symbol(y, Decl(for-of58.ts, 1, 10)) |
| 9 | + |
| 10 | +declare const arr: X[] & Y[]; |
| 11 | +>arr : Symbol(arr, Decl(for-of58.ts, 3, 13)) |
| 12 | +>X : Symbol(X, Decl(for-of58.ts, 0, 0)) |
| 13 | +>Y : Symbol(Y, Decl(for-of58.ts, 0, 20)) |
| 14 | + |
| 15 | +for (const item of arr) { |
| 16 | +>item : Symbol(item, Decl(for-of58.ts, 5, 10)) |
| 17 | +>arr : Symbol(arr, Decl(for-of58.ts, 3, 13)) |
| 18 | + |
| 19 | + item.x; |
| 20 | +>item.x : Symbol(x, Decl(for-of58.ts, 0, 10)) |
| 21 | +>item : Symbol(item, Decl(for-of58.ts, 5, 10)) |
| 22 | +>x : Symbol(x, Decl(for-of58.ts, 0, 10)) |
| 23 | + |
| 24 | + item.y; |
| 25 | +>item.y : Symbol(y, Decl(for-of58.ts, 1, 10)) |
| 26 | +>item : Symbol(item, Decl(for-of58.ts, 5, 10)) |
| 27 | +>y : Symbol(y, Decl(for-of58.ts, 1, 10)) |
| 28 | +} |
| 29 | + |
0 commit comments