Skip to content

Commit db4ea4a

Browse files
committed
Update baselines
1 parent 06a13b9 commit db4ea4a

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//// [forOfStringConstituents.ts]
2+
interface A { x: 0; y: C[]; }
3+
interface B { x: 1; y: CD[]; }
4+
interface C { x: 2; }
5+
interface D { x: 3; }
6+
type AB = A | B;
7+
type CD = C | D;
8+
declare let x: AB, y: CD;
9+
for (y of x.y);
10+
11+
//// [forOfStringConstituents.js]
12+
for (var _i = 0, _a = x.y; _i < _a.length; _i++) {
13+
y = _a[_i];
14+
;
15+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
=== tests/cases/compiler/forOfStringConstituents.ts ===
2+
interface A { x: 0; y: C[]; }
3+
>A : A
4+
>x : 0
5+
>y : C[]
6+
>C : C
7+
8+
interface B { x: 1; y: CD[]; }
9+
>B : B
10+
>x : 1
11+
>y : CD[]
12+
>CD : CD
13+
14+
interface C { x: 2; }
15+
>C : C
16+
>x : 2
17+
18+
interface D { x: 3; }
19+
>D : D
20+
>x : 3
21+
22+
type AB = A | B;
23+
>AB : AB
24+
>A : A
25+
>B : B
26+
27+
type CD = C | D;
28+
>CD : CD
29+
>C : C
30+
>D : D
31+
32+
declare let x: AB, y: CD;
33+
>x : AB
34+
>AB : AB
35+
>y : CD
36+
>CD : CD
37+
38+
for (y of x.y);
39+
>y : CD
40+
>x.y : C[] | CD[]
41+
>x : AB
42+
>y : C[] | CD[]
43+

0 commit comments

Comments
 (0)