Skip to content

Commit c8d5260

Browse files
committed
Accept new baselines
1 parent 70e259a commit c8d5260

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

tests/baselines/reference/strictFunctionTypesErrors.errors.txt

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,26 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(58,1): error TS2322: Type 'Fun
4040
Type 'Object' is not assignable to type 'string'.
4141
tests/cases/compiler/strictFunctionTypesErrors.ts(61,1): error TS2322: Type 'Func<Func<Object, void>, Object>' is not assignable to type 'Func<Func<string, void>, Object>'.
4242
Types of parameters 'x' and 'x' are incompatible.
43-
Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
44-
Types of parameters 'x' and 'x' are incompatible.
45-
Type 'Object' is not assignable to type 'string'.
43+
Types of parameters 'x' and 'x' are incompatible.
44+
Type 'Object' is not assignable to type 'string'.
4645
tests/cases/compiler/strictFunctionTypesErrors.ts(62,1): error TS2322: Type 'Func<Func<Object, void>, string>' is not assignable to type 'Func<Func<string, void>, Object>'.
4746
Types of parameters 'x' and 'x' are incompatible.
48-
Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
47+
Types of parameters 'x' and 'x' are incompatible.
48+
Type 'Object' is not assignable to type 'string'.
4949
tests/cases/compiler/strictFunctionTypesErrors.ts(65,1): error TS2322: Type 'Func<Func<Object, void>, Object>' is not assignable to type 'Func<Func<string, void>, string>'.
5050
Types of parameters 'x' and 'x' are incompatible.
51-
Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
51+
Types of parameters 'x' and 'x' are incompatible.
52+
Type 'Object' is not assignable to type 'string'.
5253
tests/cases/compiler/strictFunctionTypesErrors.ts(66,1): error TS2322: Type 'Func<Func<Object, void>, string>' is not assignable to type 'Func<Func<string, void>, string>'.
5354
Types of parameters 'x' and 'x' are incompatible.
54-
Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
55+
Types of parameters 'x' and 'x' are incompatible.
56+
Type 'Object' is not assignable to type 'string'.
5557
tests/cases/compiler/strictFunctionTypesErrors.ts(67,1): error TS2322: Type 'Func<Func<string, void>, Object>' is not assignable to type 'Func<Func<string, void>, string>'.
5658
Type 'Object' is not assignable to type 'string'.
5759
tests/cases/compiler/strictFunctionTypesErrors.ts(74,1): error TS2322: Type 'Func<Object, Func<string, void>>' is not assignable to type 'Func<Object, Func<Object, void>>'.
5860
Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
61+
Types of parameters 'x' and 'x' are incompatible.
62+
Type 'Object' is not assignable to type 'string'.
5963
tests/cases/compiler/strictFunctionTypesErrors.ts(75,1): error TS2322: Type 'Func<string, Func<Object, void>>' is not assignable to type 'Func<Object, Func<Object, void>>'.
6064
Types of parameters 'x' and 'x' are incompatible.
6165
Type 'Object' is not assignable to type 'string'.
@@ -85,13 +89,11 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(127,1): error TS2322: Type 'Cr
8589
Type 'Animal' is not assignable to type 'Dog'.
8690
tests/cases/compiler/strictFunctionTypesErrors.ts(133,1): error TS2322: Type '(f: (x: Dog) => Dog) => void' is not assignable to type '(f: (x: Animal) => Animal) => void'.
8791
Types of parameters 'f' and 'f' are incompatible.
88-
Type '(x: Animal) => Animal' is not assignable to type '(x: Dog) => Dog'.
89-
Type 'Animal' is not assignable to type 'Dog'.
92+
Type 'Animal' is not assignable to type 'Dog'.
9093
tests/cases/compiler/strictFunctionTypesErrors.ts(134,1): error TS2322: Type '(f: (x: Animal) => Animal) => void' is not assignable to type '(f: (x: Dog) => Dog) => void'.
9194
Types of parameters 'f' and 'f' are incompatible.
92-
Type '(x: Dog) => Dog' is not assignable to type '(x: Animal) => Animal'.
93-
Types of parameters 'x' and 'x' are incompatible.
94-
Type 'Animal' is not assignable to type 'Dog'.
95+
Types of parameters 'x' and 'x' are incompatible.
96+
Type 'Animal' is not assignable to type 'Dog'.
9597

9698

9799
==== tests/cases/compiler/strictFunctionTypesErrors.ts (33 errors) ====
@@ -215,26 +217,28 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(134,1): error TS2322: Type '(f
215217
~~
216218
!!! error TS2322: Type 'Func<Func<Object, void>, Object>' is not assignable to type 'Func<Func<string, void>, Object>'.
217219
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
218-
!!! error TS2322: Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
219-
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
220-
!!! error TS2322: Type 'Object' is not assignable to type 'string'.
220+
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
221+
!!! error TS2322: Type 'Object' is not assignable to type 'string'.
221222
h3 = h2; // Error
222223
~~
223224
!!! error TS2322: Type 'Func<Func<Object, void>, string>' is not assignable to type 'Func<Func<string, void>, Object>'.
224225
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
225-
!!! error TS2322: Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
226+
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
227+
!!! error TS2322: Type 'Object' is not assignable to type 'string'.
226228
h3 = h4; // Ok
227229

228230
h4 = h1; // Error
229231
~~
230232
!!! error TS2322: Type 'Func<Func<Object, void>, Object>' is not assignable to type 'Func<Func<string, void>, string>'.
231233
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
232-
!!! error TS2322: Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
234+
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
235+
!!! error TS2322: Type 'Object' is not assignable to type 'string'.
233236
h4 = h2; // Error
234237
~~
235238
!!! error TS2322: Type 'Func<Func<Object, void>, string>' is not assignable to type 'Func<Func<string, void>, string>'.
236239
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
237-
!!! error TS2322: Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
240+
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
241+
!!! error TS2322: Type 'Object' is not assignable to type 'string'.
238242
h4 = h3; // Error
239243
~~
240244
!!! error TS2322: Type 'Func<Func<string, void>, Object>' is not assignable to type 'Func<Func<string, void>, string>'.
@@ -249,6 +253,8 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(134,1): error TS2322: Type '(f
249253
~~
250254
!!! error TS2322: Type 'Func<Object, Func<string, void>>' is not assignable to type 'Func<Object, Func<Object, void>>'.
251255
!!! error TS2322: Type 'Func<string, void>' is not assignable to type 'Func<Object, void>'.
256+
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
257+
!!! error TS2322: Type 'Object' is not assignable to type 'string'.
252258
i1 = i3; // Error
253259
~~
254260
!!! error TS2322: Type 'Func<string, Func<Object, void>>' is not assignable to type 'Func<Object, Func<Object, void>>'.
@@ -347,13 +353,11 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(134,1): error TS2322: Type '(f
347353
~~~
348354
!!! error TS2322: Type '(f: (x: Dog) => Dog) => void' is not assignable to type '(f: (x: Animal) => Animal) => void'.
349355
!!! error TS2322: Types of parameters 'f' and 'f' are incompatible.
350-
!!! error TS2322: Type '(x: Animal) => Animal' is not assignable to type '(x: Dog) => Dog'.
351-
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
356+
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
352357
fc2 = fc1; // Error
353358
~~~
354359
!!! error TS2322: Type '(f: (x: Animal) => Animal) => void' is not assignable to type '(f: (x: Dog) => Dog) => void'.
355360
!!! error TS2322: Types of parameters 'f' and 'f' are incompatible.
356-
!!! error TS2322: Type '(x: Dog) => Dog' is not assignable to type '(x: Animal) => Animal'.
357-
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
358-
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
361+
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
362+
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
359363

0 commit comments

Comments
 (0)