Skip to content

Commit 737867e

Browse files
committed
Accept new baselines
1 parent b9fa0af commit 737867e

10 files changed

+37
-37
lines changed

tests/baselines/reference/asyncMethodWithSuper_es5.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class B extends A {
2727
>super["x"]() : void
2828
>super["x"] : () => void
2929
>super : A
30-
>"x" : string
30+
>"x" : "x"
3131

3232
// property access (read)
3333
const a = super.x;
@@ -41,7 +41,7 @@ class B extends A {
4141
>b : () => void
4242
>super["x"] : () => void
4343
>super : A
44-
>"x" : string
44+
>"x" : "x"
4545
}
4646

4747
// async method with assignment/destructuring on 'super' requires a binding
@@ -64,7 +64,7 @@ class B extends A {
6464
>super["x"]() : void
6565
>super["x"] : () => void
6666
>super : A
67-
>"x" : string
67+
>"x" : "x"
6868

6969
// property access (read)
7070
const a = super.x;
@@ -78,7 +78,7 @@ class B extends A {
7878
>b : () => void
7979
>super["x"] : () => void
8080
>super : A
81-
>"x" : string
81+
>"x" : "x"
8282

8383
// property access (assign)
8484
super.x = f;
@@ -93,7 +93,7 @@ class B extends A {
9393
>super["x"] = f : () => void
9494
>super["x"] : () => void
9595
>super : A
96-
>"x" : string
96+
>"x" : "x"
9797
>f : () => void
9898

9999
// destructuring assign with property access
@@ -116,7 +116,7 @@ class B extends A {
116116
>f : () => void
117117
>super["x"] : () => void
118118
>super : A
119-
>"x" : string
119+
>"x" : "x"
120120
>{ f } : { f: () => void; }
121121
>f : () => void
122122
}

tests/baselines/reference/asyncUseStrict_es5.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function func(): Promise<void> {
1111
>Promise : Promise<T>
1212

1313
"use strict";
14-
>"use strict" : string
14+
>"use strict" : "use strict"
1515

1616
var b = await p || a;
1717
>b : boolean

tests/baselines/reference/asyncUseStrict_es6.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function func(): Promise<void> {
1111
>Promise : Promise<T>
1212

1313
"use strict";
14-
>"use strict" : string
14+
>"use strict" : "use strict"
1515

1616
var b = await p || a;
1717
>b : boolean

tests/baselines/reference/classExpressionWithStaticProperties1.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var v = class C {
66

77
static a = 1;
88
>a : number
9-
>1 : number
9+
>1 : 1
1010

1111
static b = 2;
1212
>b : number

tests/baselines/reference/classExpressionWithStaticProperties2.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var v = class C {
66

77
static a = 1;
88
>a : number
9-
>1 : number
9+
>1 : 1
1010

1111
static b
1212
>b : any
@@ -17,7 +17,7 @@ var v = class C {
1717

1818
x: "hi"
1919
>x : string
20-
>"hi" : string
20+
>"hi" : "hi"
2121
}
2222
static d = C.c.x + " world";
2323
>d : string
@@ -27,6 +27,6 @@ var v = class C {
2727
>C : typeof C
2828
>c : { x: string; }
2929
>x : string
30-
>" world" : string
30+
>" world" : " world"
3131

3232
};

tests/baselines/reference/classExpressionWithStaticProperties3.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const arr: {y(): number}[] = [];
1010

1111
for (let i = 0; i < 3; i++) {
1212
>i : number
13-
>0 : number
13+
>0 : 0
1414
>i < 3 : boolean
1515
>i : number
16-
>3 : number
16+
>3 : 3
1717
>i++ : number
1818
>i : number
1919

@@ -36,7 +36,7 @@ for (let i = 0; i < 3; i++) {
3636
>C.x : number
3737
>C : typeof C
3838
>x : number
39-
>2 : number
39+
>2 : 2
4040

4141
});
4242
}

tests/baselines/reference/commentsOnRequireStatement.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
export var subject = 10;
44
>subject : number
5-
>10 : number
5+
>10 : 10
66

77
=== tests/cases/compiler/1.ts ===
88
export var subject1 = 10;
99
>subject1 : number
10-
>10 : number
10+
>10 : 10
1111

1212
=== tests/cases/compiler/2.ts ===
1313
/* blah0 */

tests/baselines/reference/es5-asyncFunctionDoStatements.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function doStatement5() {
5353
>doStatement5 : () => Promise<void>
5454

5555
do { if (1) continue; await x; } while (y);
56-
>1 : number
56+
>1 : 1
5757
>await x : any
5858
>x : any
5959
>y : any
@@ -92,7 +92,7 @@ async function doStatement9() {
9292

9393
C: do { if (1) continue C; await x; } while (y);
9494
>C : any
95-
>1 : number
95+
>1 : 1
9696
>C : any
9797
>await x : any
9898
>x : any
@@ -129,7 +129,7 @@ async function doStatement13() {
129129
>doStatement13 : () => Promise<void>
130130

131131
do { if (1) break; await x; } while (y);
132-
>1 : number
132+
>1 : 1
133133
>await x : any
134134
>x : any
135135
>y : any
@@ -168,7 +168,7 @@ async function doStatement17() {
168168

169169
G: do { if (1) break G; await x; } while (y);
170170
>G : any
171-
>1 : number
171+
>1 : 1
172172
>G : any
173173
>await x : any
174174
>x : any

tests/baselines/reference/es5-asyncFunctionHoisting.types

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ async function hoisting() {
88
var a0, a1 = 1;
99
>a0 : any
1010
>a1 : number
11-
>1 : number
11+
>1 : 1
1212

1313
function z() {
1414
>z : () => void
1515

1616
var b0, b1 = 1;
1717
>b0 : any
1818
>b1 : number
19-
>1 : number
19+
>1 : 1
2020
}
2121

2222
if (true) {
23-
>true : boolean
23+
>true : true
2424

2525
var c0, c1 = 1;
2626
>c0 : any
2727
>c1 : number
28-
>1 : number
28+
>1 : 1
2929
}
3030

3131
for (var a = 0; y;) {
3232
>a : number
33-
>0 : number
33+
>0 : 0
3434
>y : any
3535

3636
}
@@ -54,33 +54,33 @@ async function hoistingWithAwait() {
5454
var a0, a1 = 1;
5555
>a0 : any
5656
>a1 : number
57-
>1 : number
57+
>1 : 1
5858

5959
function z() {
6060
>z : () => void
6161

6262
var b0, b1 = 1;
6363
>b0 : any
6464
>b1 : number
65-
>1 : number
65+
>1 : 1
6666
}
6767

6868
await 0;
69-
>await 0 : number
70-
>0 : number
69+
>await 0 : 0
70+
>0 : 0
7171

7272
if (true) {
73-
>true : boolean
73+
>true : true
7474

7575
var c0, c1 = 1;
7676
>c0 : any
7777
>c1 : number
78-
>1 : number
78+
>1 : 1
7979
}
8080

8181
for (var a = 0; y;) {
8282
>a : number
83-
>0 : number
83+
>0 : 0
8484
>y : any
8585

8686
}

tests/baselines/reference/es5-asyncFunctionWhileStatements.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function whileStatement6() {
6262

6363
while (x) { if (1) continue; await y; }
6464
>x : any
65-
>1 : number
65+
>1 : 1
6666
>await y : any
6767
>y : any
6868
}
@@ -103,7 +103,7 @@ async function whileStatement10() {
103103
D: while (x) { if (1) continue D; await y; }
104104
>D : any
105105
>x : any
106-
>1 : number
106+
>1 : 1
107107
>D : any
108108
>await y : any
109109
>y : any
@@ -138,7 +138,7 @@ async function whileStatement14() {
138138

139139
while (x) { if (1) break; await y; }
140140
>x : any
141-
>1 : number
141+
>1 : 1
142142
>await y : any
143143
>y : any
144144
}
@@ -179,7 +179,7 @@ async function whileStatement18() {
179179
H: while (x) { if (1) break H; await y; }
180180
>H : any
181181
>x : any
182-
>1 : number
182+
>1 : 1
183183
>H : any
184184
>await y : any
185185
>y : any

0 commit comments

Comments
 (0)