Skip to content

Commit 6995055

Browse files
committed
Accept new baselines
1 parent 65cea20 commit 6995055

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

tests/baselines/reference/ambientRequireFunction.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const fs = require("fs");
55
>fs : typeof "fs"
6-
>require("fs") : any
6+
>require("fs") : typeof "fs"
77
>require : (moduleName: string) => any
88
>"fs" : "fs"
99

tests/baselines/reference/controlFlowIterationErrors.errors.txt

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@ tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(35,17): error
66
Type 'string' is not assignable to type 'number'.
77
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(46,17): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
88
Type 'string' is not assignable to type 'number'.
9-
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(77,13): error TS7022: 'y' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
10-
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(77,26): error TS2345: Argument of type 'string | number | boolean' is not assignable to parameter of type 'string | number'.
11-
Type 'true' is not assignable to type 'string | number'.
12-
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(88,13): error TS7022: 'y' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
13-
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(88,26): error TS2345: Argument of type 'string | number | boolean' is not assignable to parameter of type 'string | number'.
14-
Type 'true' is not assignable to type 'string | number'.
159

1610

17-
==== tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts (8 errors) ====
11+
==== tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts (4 errors) ====
1812

1913
let cond: boolean;
2014

@@ -104,11 +98,6 @@ tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(88,26): error
10498
x = "0";
10599
while (cond) {
106100
let y = asNumber(x);
107-
~
108-
!!! error TS7022: 'y' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
109-
~
110-
!!! error TS2345: Argument of type 'string | number | boolean' is not assignable to parameter of type 'string | number'.
111-
!!! error TS2345: Type 'true' is not assignable to type 'string | number'.
112101
x = y + 1;
113102
x;
114103
}
@@ -120,11 +109,6 @@ tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(88,26): error
120109
while (cond) {
121110
x;
122111
let y = asNumber(x);
123-
~
124-
!!! error TS7022: 'y' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
125-
~
126-
!!! error TS2345: Argument of type 'string | number | boolean' is not assignable to parameter of type 'string | number'.
127-
!!! error TS2345: Type 'true' is not assignable to type 'string | number'.
128112
x = y + 1;
129113
x;
130114
}

tests/baselines/reference/implicitAnyFromCircularInference.errors.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ tests/cases/compiler/implicitAnyFromCircularInference.ts(18,10): error TS7024: F
77
tests/cases/compiler/implicitAnyFromCircularInference.ts(23,10): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
88
tests/cases/compiler/implicitAnyFromCircularInference.ts(26,10): error TS7023: 'h' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
99
tests/cases/compiler/implicitAnyFromCircularInference.ts(28,14): error TS7023: 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
10-
tests/cases/compiler/implicitAnyFromCircularInference.ts(41,5): error TS7022: 's' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
1110
tests/cases/compiler/implicitAnyFromCircularInference.ts(46,9): error TS7023: 'x' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
1211

1312

14-
==== tests/cases/compiler/implicitAnyFromCircularInference.ts (11 errors) ====
13+
==== tests/cases/compiler/implicitAnyFromCircularInference.ts (10 errors) ====
1514

1615
// Error expected
1716
var a: typeof a;
@@ -71,8 +70,6 @@ tests/cases/compiler/implicitAnyFromCircularInference.ts(46,9): error TS7023: 'x
7170
class C {
7271
// Error expected
7372
s = foo(this);
74-
~~~~~~~~~~~~~~
75-
!!! error TS7022: 's' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
7673
}
7774

7875
class D {

0 commit comments

Comments
 (0)