File tree Expand file tree Collapse file tree 10 files changed +37
-37
lines changed
tests/baselines/reference Expand file tree Collapse file tree 10 files changed +37
-37
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class B extends A {
27
27
>super["x"]() : void
28
28
>super["x"] : () => void
29
29
>super : A
30
- >"x" : string
30
+ >"x" : "x"
31
31
32
32
// property access (read)
33
33
const a = super.x;
@@ -41,7 +41,7 @@ class B extends A {
41
41
>b : () => void
42
42
>super["x"] : () => void
43
43
>super : A
44
- >"x" : string
44
+ >"x" : "x"
45
45
}
46
46
47
47
// async method with assignment/destructuring on 'super' requires a binding
@@ -64,7 +64,7 @@ class B extends A {
64
64
>super["x"]() : void
65
65
>super["x"] : () => void
66
66
>super : A
67
- >"x" : string
67
+ >"x" : "x"
68
68
69
69
// property access (read)
70
70
const a = super.x;
@@ -78,7 +78,7 @@ class B extends A {
78
78
>b : () => void
79
79
>super["x"] : () => void
80
80
>super : A
81
- >"x" : string
81
+ >"x" : "x"
82
82
83
83
// property access (assign)
84
84
super.x = f;
@@ -93,7 +93,7 @@ class B extends A {
93
93
>super["x"] = f : () => void
94
94
>super["x"] : () => void
95
95
>super : A
96
- >"x" : string
96
+ >"x" : "x"
97
97
>f : () => void
98
98
99
99
// destructuring assign with property access
@@ -116,7 +116,7 @@ class B extends A {
116
116
>f : () => void
117
117
>super["x"] : () => void
118
118
>super : A
119
- >"x" : string
119
+ >"x" : "x"
120
120
>{ f } : { f: () => void; }
121
121
>f : () => void
122
122
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async function func(): Promise<void> {
11
11
>Promise : Promise<T>
12
12
13
13
"use strict";
14
- >"use strict" : string
14
+ >"use strict" : "use strict"
15
15
16
16
var b = await p || a;
17
17
>b : boolean
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async function func(): Promise<void> {
11
11
>Promise : Promise<T>
12
12
13
13
"use strict";
14
- >"use strict" : string
14
+ >"use strict" : "use strict"
15
15
16
16
var b = await p || a;
17
17
>b : boolean
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var v = class C {
6
6
7
7
static a = 1;
8
8
>a : number
9
- >1 : number
9
+ >1 : 1
10
10
11
11
static b = 2;
12
12
>b : number
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var v = class C {
6
6
7
7
static a = 1;
8
8
>a : number
9
- >1 : number
9
+ >1 : 1
10
10
11
11
static b
12
12
>b : any
@@ -17,7 +17,7 @@ var v = class C {
17
17
18
18
x: "hi"
19
19
>x : string
20
- >"hi" : string
20
+ >"hi" : "hi"
21
21
}
22
22
static d = C.c.x + " world";
23
23
>d : string
@@ -27,6 +27,6 @@ var v = class C {
27
27
>C : typeof C
28
28
>c : { x: string; }
29
29
>x : string
30
- >" world" : string
30
+ >" world" : " world"
31
31
32
32
};
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ const arr: {y(): number}[] = [];
10
10
11
11
for (let i = 0; i < 3; i++) {
12
12
>i : number
13
- >0 : number
13
+ >0 : 0
14
14
>i < 3 : boolean
15
15
>i : number
16
- >3 : number
16
+ >3 : 3
17
17
>i++ : number
18
18
>i : number
19
19
@@ -36,7 +36,7 @@ for (let i = 0; i < 3; i++) {
36
36
>C.x : number
37
37
>C : typeof C
38
38
>x : number
39
- >2 : number
39
+ >2 : 2
40
40
41
41
});
42
42
}
Original file line number Diff line number Diff line change 2
2
3
3
export var subject = 10;
4
4
>subject : number
5
- >10 : number
5
+ >10 : 10
6
6
7
7
=== tests/cases/compiler/1.ts ===
8
8
export var subject1 = 10;
9
9
>subject1 : number
10
- >10 : number
10
+ >10 : 10
11
11
12
12
=== tests/cases/compiler/2.ts ===
13
13
/* blah0 */
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ async function doStatement5() {
53
53
>doStatement5 : () => Promise<void>
54
54
55
55
do { if (1) continue; await x; } while (y);
56
- >1 : number
56
+ >1 : 1
57
57
>await x : any
58
58
>x : any
59
59
>y : any
@@ -92,7 +92,7 @@ async function doStatement9() {
92
92
93
93
C: do { if (1) continue C; await x; } while (y);
94
94
>C : any
95
- >1 : number
95
+ >1 : 1
96
96
>C : any
97
97
>await x : any
98
98
>x : any
@@ -129,7 +129,7 @@ async function doStatement13() {
129
129
>doStatement13 : () => Promise<void>
130
130
131
131
do { if (1) break; await x; } while (y);
132
- >1 : number
132
+ >1 : 1
133
133
>await x : any
134
134
>x : any
135
135
>y : any
@@ -168,7 +168,7 @@ async function doStatement17() {
168
168
169
169
G: do { if (1) break G; await x; } while (y);
170
170
>G : any
171
- >1 : number
171
+ >1 : 1
172
172
>G : any
173
173
>await x : any
174
174
>x : any
Original file line number Diff line number Diff line change @@ -8,29 +8,29 @@ async function hoisting() {
8
8
var a0, a1 = 1;
9
9
>a0 : any
10
10
>a1 : number
11
- >1 : number
11
+ >1 : 1
12
12
13
13
function z() {
14
14
>z : () => void
15
15
16
16
var b0, b1 = 1;
17
17
>b0 : any
18
18
>b1 : number
19
- >1 : number
19
+ >1 : 1
20
20
}
21
21
22
22
if (true) {
23
- >true : boolean
23
+ >true : true
24
24
25
25
var c0, c1 = 1;
26
26
>c0 : any
27
27
>c1 : number
28
- >1 : number
28
+ >1 : 1
29
29
}
30
30
31
31
for (var a = 0; y;) {
32
32
>a : number
33
- >0 : number
33
+ >0 : 0
34
34
>y : any
35
35
36
36
}
@@ -54,33 +54,33 @@ async function hoistingWithAwait() {
54
54
var a0, a1 = 1;
55
55
>a0 : any
56
56
>a1 : number
57
- >1 : number
57
+ >1 : 1
58
58
59
59
function z() {
60
60
>z : () => void
61
61
62
62
var b0, b1 = 1;
63
63
>b0 : any
64
64
>b1 : number
65
- >1 : number
65
+ >1 : 1
66
66
}
67
67
68
68
await 0;
69
- >await 0 : number
70
- >0 : number
69
+ >await 0 : 0
70
+ >0 : 0
71
71
72
72
if (true) {
73
- >true : boolean
73
+ >true : true
74
74
75
75
var c0, c1 = 1;
76
76
>c0 : any
77
77
>c1 : number
78
- >1 : number
78
+ >1 : 1
79
79
}
80
80
81
81
for (var a = 0; y;) {
82
82
>a : number
83
- >0 : number
83
+ >0 : 0
84
84
>y : any
85
85
86
86
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ async function whileStatement6() {
62
62
63
63
while (x) { if (1) continue; await y; }
64
64
>x : any
65
- >1 : number
65
+ >1 : 1
66
66
>await y : any
67
67
>y : any
68
68
}
@@ -103,7 +103,7 @@ async function whileStatement10() {
103
103
D: while (x) { if (1) continue D; await y; }
104
104
>D : any
105
105
>x : any
106
- >1 : number
106
+ >1 : 1
107
107
>D : any
108
108
>await y : any
109
109
>y : any
@@ -138,7 +138,7 @@ async function whileStatement14() {
138
138
139
139
while (x) { if (1) break; await y; }
140
140
>x : any
141
- >1 : number
141
+ >1 : 1
142
142
>await y : any
143
143
>y : any
144
144
}
@@ -179,7 +179,7 @@ async function whileStatement18() {
179
179
H: while (x) { if (1) break H; await y; }
180
180
>H : any
181
181
>x : any
182
- >1 : number
182
+ >1 : 1
183
183
>H : any
184
184
>await y : any
185
185
>y : any
You can’t perform that action at this time.
0 commit comments