|
| 1 | +=== tests/cases/compiler/forOfStringConstituents.ts === |
| 2 | +interface A { x: 0; y: C[]; } |
| 3 | +>A : Symbol(A, Decl(forOfStringConstituents.ts, 0, 0)) |
| 4 | +>x : Symbol(A.x, Decl(forOfStringConstituents.ts, 0, 13)) |
| 5 | +>y : Symbol(A.y, Decl(forOfStringConstituents.ts, 0, 19)) |
| 6 | +>C : Symbol(C, Decl(forOfStringConstituents.ts, 1, 30)) |
| 7 | + |
| 8 | +interface B { x: 1; y: CD[]; } |
| 9 | +>B : Symbol(B, Decl(forOfStringConstituents.ts, 0, 29)) |
| 10 | +>x : Symbol(B.x, Decl(forOfStringConstituents.ts, 1, 13)) |
| 11 | +>y : Symbol(B.y, Decl(forOfStringConstituents.ts, 1, 19)) |
| 12 | +>CD : Symbol(CD, Decl(forOfStringConstituents.ts, 4, 16)) |
| 13 | + |
| 14 | +interface C { x: 2; } |
| 15 | +>C : Symbol(C, Decl(forOfStringConstituents.ts, 1, 30)) |
| 16 | +>x : Symbol(C.x, Decl(forOfStringConstituents.ts, 2, 13)) |
| 17 | + |
| 18 | +interface D { x: 3; } |
| 19 | +>D : Symbol(D, Decl(forOfStringConstituents.ts, 2, 21)) |
| 20 | +>x : Symbol(D.x, Decl(forOfStringConstituents.ts, 3, 13)) |
| 21 | + |
| 22 | +type AB = A | B; |
| 23 | +>AB : Symbol(AB, Decl(forOfStringConstituents.ts, 3, 21)) |
| 24 | +>A : Symbol(A, Decl(forOfStringConstituents.ts, 0, 0)) |
| 25 | +>B : Symbol(B, Decl(forOfStringConstituents.ts, 0, 29)) |
| 26 | + |
| 27 | +type CD = C | D; |
| 28 | +>CD : Symbol(CD, Decl(forOfStringConstituents.ts, 4, 16)) |
| 29 | +>C : Symbol(C, Decl(forOfStringConstituents.ts, 1, 30)) |
| 30 | +>D : Symbol(D, Decl(forOfStringConstituents.ts, 2, 21)) |
| 31 | + |
| 32 | +declare let x: AB, y: CD; |
| 33 | +>x : Symbol(x, Decl(forOfStringConstituents.ts, 6, 11)) |
| 34 | +>AB : Symbol(AB, Decl(forOfStringConstituents.ts, 3, 21)) |
| 35 | +>y : Symbol(y, Decl(forOfStringConstituents.ts, 6, 18)) |
| 36 | +>CD : Symbol(CD, Decl(forOfStringConstituents.ts, 4, 16)) |
| 37 | + |
| 38 | +for (y of x.y); |
| 39 | +>y : Symbol(y, Decl(forOfStringConstituents.ts, 6, 18)) |
| 40 | +>x.y : Symbol(y, Decl(forOfStringConstituents.ts, 0, 19), Decl(forOfStringConstituents.ts, 1, 19)) |
| 41 | +>x : Symbol(x, Decl(forOfStringConstituents.ts, 6, 11)) |
| 42 | +>y : Symbol(y, Decl(forOfStringConstituents.ts, 0, 19), Decl(forOfStringConstituents.ts, 1, 19)) |
| 43 | + |
0 commit comments