Skip to content

Commit 10d331e

Browse files
committed
Accept new baselines
1 parent b8e9ecf commit 10d331e

9 files changed

Lines changed: 22 additions & 22 deletions

tests/baselines/reference/controlFlowIteration.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let cond: boolean;
44
>cond : boolean
55

66
function ff() {
7-
>ff : () => never
7+
>ff : () => void
88

99
let x: string | undefined;
1010
>x : string | undefined

tests/baselines/reference/duplicateLabel3.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ while (true) {
77
>true : boolean
88

99
function f() {
10-
>f : () => never
10+
>f : () => void
1111

1212
target:
1313
>target : any

tests/baselines/reference/forStatementsMultipleValidDecl.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for (var x = <number>undefined; ;) { }
1616

1717
// new declaration space, making redeclaring x as a string valid
1818
function declSpace() {
19-
>declSpace : () => never
19+
>declSpace : () => void
2020

2121
for (var x = 'this is a string'; ;) { }
2222
>x : string

tests/baselines/reference/narrowingOfDottedNames.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function isB(x: any): x is B {
4242
}
4343

4444
function f1(x: A | B) {
45-
>f1 : (x: A | B) => never
45+
>f1 : (x: A | B) => void
4646
>x : A | B
4747
>A : A
4848
>B : B
@@ -78,7 +78,7 @@ function f1(x: A | B) {
7878
}
7979

8080
function f2(x: A | B) {
81-
>f2 : (x: A | B) => never
81+
>f2 : (x: A | B) => void
8282
>x : A | B
8383
>A : A
8484
>B : B

tests/baselines/reference/nestedBlockScopedBindings3.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== tests/cases/compiler/nestedBlockScopedBindings3.ts ===
22
function a0() {
3-
>a0 : () => never
3+
>a0 : () => void
44
{
55
for (let x = 0; x < 1; ) {
66
>x : number
@@ -26,7 +26,7 @@ function a0() {
2626
}
2727

2828
function a1() {
29-
>a1 : () => never
29+
>a1 : () => void
3030

3131
for (let x; x < 1;) {
3232
>x : any
@@ -48,7 +48,7 @@ function a1() {
4848
}
4949

5050
function a2() {
51-
>a2 : () => never
51+
>a2 : () => void
5252

5353
for (let x; x < 1;) {
5454
>x : any

tests/baselines/reference/nestedBlockScopedBindings4.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== tests/cases/compiler/nestedBlockScopedBindings4.ts ===
22
function a0() {
3-
>a0 : () => never
3+
>a0 : () => void
44

55
for (let x; x < 1;) {
66
>x : any
@@ -28,7 +28,7 @@ function a0() {
2828
}
2929

3030
function a1() {
31-
>a1 : () => never
31+
>a1 : () => void
3232

3333
for (let x; x < 1;) {
3434
>x : any
@@ -60,7 +60,7 @@ function a1() {
6060
}
6161

6262
function a2() {
63-
>a2 : () => never
63+
>a2 : () => void
6464

6565
for (let x; x < 1;) {
6666
>x : any
@@ -93,7 +93,7 @@ function a2() {
9393

9494

9595
function a3() {
96-
>a3 : () => never
96+
>a3 : () => void
9797

9898
for (let x; x < 1;) {
9999
>x : any

tests/baselines/reference/nestedBlockScopedBindings6.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== tests/cases/compiler/nestedBlockScopedBindings6.ts ===
22
function a0() {
3-
>a0 : () => never
3+
>a0 : () => void
44

55
for (let x of [1]) {
66
>x : number
@@ -27,7 +27,7 @@ function a0() {
2727
}
2828

2929
function a1() {
30-
>a1 : () => never
30+
>a1 : () => void
3131

3232
for (let x of [1]) {
3333
>x : number
@@ -58,7 +58,7 @@ function a1() {
5858
}
5959

6060
function a2() {
61-
>a2 : () => never
61+
>a2 : () => void
6262

6363
for (let x of [1]) {
6464
>x : number
@@ -89,7 +89,7 @@ function a2() {
8989
}
9090

9191
function a3() {
92-
>a3 : () => never
92+
>a3 : () => void
9393

9494
for (let x of [1]) {
9595
>x : number

tests/baselines/reference/parser_duplicateLabel3.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ while (true) {
77
>true : boolean
88

99
function f() {
10-
>f : () => never
10+
>f : () => void
1111

1212
target:
1313
>target : any

tests/baselines/reference/throwInEnclosingStatements.types

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts ===
22

33
function fn(x) {
4-
>fn : (x: any) => never
4+
>fn : (x: any) => void
55
>x : any
66

77
throw x;
@@ -78,7 +78,7 @@ class C<T> {
7878
>T : T
7979

8080
biz() {
81-
>biz : () => never
81+
>biz : () => void
8282

8383
throw this.value;
8484
>this.value : T
@@ -93,15 +93,15 @@ class C<T> {
9393
}
9494

9595
var aa = {
96-
>aa : { id: number; biz(): never; }
97-
>{ id:12, biz() { throw this; }} : { id: number; biz(): never; }
96+
>aa : { id: number; biz(): void; }
97+
>{ id:12, biz() { throw this; }} : { id: number; biz(): void; }
9898

9999
id:12,
100100
>id : number
101101
>12 : number
102102

103103
biz() {
104-
>biz : () => never
104+
>biz : () => void
105105

106106
throw this;
107107
>this : any

0 commit comments

Comments
 (0)