You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/functionConstraintSatisfaction3.errors.txt
+11-5
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
-
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(48,6): error TS2345: Argument of type '(x: string, y: string) => string' is not assignable to parameter of type '(x: string, y: number) => string'.
1
+
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(50,6): error TS2345: Argument of type '(x: string, y: string) => string' is not assignable to parameter of type '(x: string, y: number) => string'.
2
2
Types of parameters 'y' and 'y' are incompatible.
3
3
Type 'number' is not assignable to type 'string'.
4
-
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(49,7): error TS2345: Argument of type '(x: string, y: string) => string' is not assignable to parameter of type '(x: string, y: number) => string'.
4
+
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(51,7): error TS2345: Argument of type '(x: string, y: string) => string' is not assignable to parameter of type '(x: string, y: number) => string'.
5
5
Types of parameters 'y' and 'y' are incompatible.
6
6
Type 'number' is not assignable to type 'string'.
7
-
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(55,12): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: string) => string'.
7
+
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(59,12): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: string) => string'.
8
8
Types of parameters 'x' and 'x' are incompatible.
9
9
Type 'string' is not assignable to type 'number'.
10
-
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(56,11): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: string) => string'.
10
+
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(60,11): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: string) => string'.
11
11
Types of parameters 'x' and 'x' are incompatible.
12
12
Type 'string' is not assignable to type 'number'.
13
-
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(64,17): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: string) => string'.
13
+
tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts(70,17): error TS2345: Argument of type '(x: number) => number' is not assignable to parameter of type '(x: string) => string'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/promisePermutations.errors.txt
+16-16
Original file line number
Diff line number
Diff line change
@@ -31,17 +31,17 @@ tests/cases/compiler/promisePermutations.ts(110,19): error TS2345: Argument of t
31
31
tests/cases/compiler/promisePermutations.ts(111,19): error TS2345: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
32
32
Types of parameters 'cb' and 'value' are incompatible.
33
33
Type 'string' is not assignable to type '<T>(a: T) => T'.
34
-
tests/cases/compiler/promisePermutations.ts(117,19): error TS2345: Argument of type '(x: number, cb: (a: number) => number) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
35
-
tests/cases/compiler/promisePermutations.ts(120,19): error TS2345: Argument of type '(x: number, cb: (a: number) => number) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
36
-
tests/cases/compiler/promisePermutations.ts(121,19): error TS2345: Argument of type '(x: number, cb: (a: number) => number) => Promise<number>' is not assignable to parameter of type '(value: number) => Promise<any>'.
37
-
tests/cases/compiler/promisePermutations.ts(122,19): error TS2345: Argument of type '(x: number, cb: (a: number) => number) => Promise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
38
-
tests/cases/compiler/promisePermutations.ts(126,19): error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
34
+
tests/cases/compiler/promisePermutations.ts(117,19): error TS2345: Argument of type '(x: any, cb: (a: any) => any) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
35
+
tests/cases/compiler/promisePermutations.ts(120,19): error TS2345: Argument of type '(x: any, cb: (a: any) => any) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
36
+
tests/cases/compiler/promisePermutations.ts(121,19): error TS2345: Argument of type '(x: any, cb: (a: any) => any) => Promise<any>' is not assignable to parameter of type '(value: number) => Promise<any>'.
37
+
tests/cases/compiler/promisePermutations.ts(122,19): error TS2345: Argument of type '(x: any, cb: (a: any) => any) => Promise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
38
+
tests/cases/compiler/promisePermutations.ts(126,19): error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
39
39
tests/cases/compiler/promisePermutations.ts(129,11): error TS2453: The type argument for type parameter 'U' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
40
40
Type argument candidate 'IPromise<number>' is not a valid type argument because it is not a supertype of candidate 'IPromise<string>'.
41
41
Type 'string' is not assignable to type 'number'.
42
-
tests/cases/compiler/promisePermutations.ts(132,19): error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
43
-
tests/cases/compiler/promisePermutations.ts(133,19): error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => Promise<number>' is not assignable to parameter of type '(value: number) => Promise<any>'.
44
-
tests/cases/compiler/promisePermutations.ts(134,19): error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => Promise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
42
+
tests/cases/compiler/promisePermutations.ts(132,19): error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
43
+
tests/cases/compiler/promisePermutations.ts(133,19): error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => Promise<any>' is not assignable to parameter of type '(value: number) => Promise<any>'.
44
+
tests/cases/compiler/promisePermutations.ts(134,19): error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => Promise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
45
45
tests/cases/compiler/promisePermutations.ts(137,11): error TS2453: The type argument for type parameter 'U' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
46
46
Type argument candidate 'IPromise<number>' is not a valid type argument because it is not a supertype of candidate 'IPromise<string>'.
47
47
tests/cases/compiler/promisePermutations.ts(144,12): error TS2453: The type argument for type parameter 'U' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
@@ -239,24 +239,24 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2345: Argument of t
239
239
var nPromise: (x: any) => Promise<number>;
240
240
var r8a = r8.then(testFunction8, testFunction8, testFunction8); // error
241
241
~~~~~~~~~~~~~
242
-
!!! error TS2345: Argument of type '(x: number, cb: (a: number) => number) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
242
+
!!! error TS2345: Argument of type '(x: any, cb: (a: any) => any) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
243
243
var r8b = r8.then(nIPromise, nIPromise, nIPromise).then(nIPromise, nIPromise, nIPromise); // ok
244
244
var s8: Promise<number>;
245
245
var s8a = s8.then(testFunction8, testFunction8, testFunction8); // error
246
246
~~~~~~~~~~~~~
247
-
!!! error TS2345: Argument of type '(x: number, cb: (a: number) => number) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
247
+
!!! error TS2345: Argument of type '(x: any, cb: (a: any) => any) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
248
248
var s8b = s8.then(testFunction8P, testFunction8P, testFunction8P); // error
249
249
~~~~~~~~~~~~~~
250
-
!!! error TS2345: Argument of type '(x: number, cb: (a: number) => number) => Promise<number>' is not assignable to parameter of type '(value: number) => Promise<any>'.
250
+
!!! error TS2345: Argument of type '(x: any, cb: (a: any) => any) => Promise<any>' is not assignable to parameter of type '(value: number) => Promise<any>'.
251
251
var s8c = s8.then(testFunction8P, testFunction8, testFunction8); // error
252
252
~~~~~~~~~~~~~~
253
-
!!! error TS2345: Argument of type '(x: number, cb: (a: number) => number) => Promise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
253
+
!!! error TS2345: Argument of type '(x: any, cb: (a: any) => any) => Promise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
254
254
var s8d = s8.then(nIPromise, nIPromise, nIPromise).then(nIPromise, nIPromise, nIPromise); // ok
255
255
256
256
var r9: IPromise<number>;
257
257
var r9a = r9.then(testFunction9, testFunction9, testFunction9); // error
258
258
~~~~~~~~~~~~~
259
-
!!! error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
259
+
!!! error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
260
260
var r9b = r9.then(sIPromise, sIPromise, sIPromise); // ok
261
261
var r9c = r9.then(nIPromise, nIPromise, nIPromise); // ok
262
262
var r9d = r9.then(testFunction, sIPromise, nIPromise); // ok
@@ -268,13 +268,13 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2345: Argument of t
268
268
var s9: Promise<number>;
269
269
var s9a = s9.then(testFunction9, testFunction9, testFunction9); // error
270
270
~~~~~~~~~~~~~
271
-
!!! error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => IPromise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
271
+
!!! error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => IPromise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
272
272
var s9b = s9.then(testFunction9P, testFunction9P, testFunction9P); // error
273
273
~~~~~~~~~~~~~~
274
-
!!! error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => Promise<number>' is not assignable to parameter of type '(value: number) => Promise<any>'.
274
+
!!! error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => Promise<any>' is not assignable to parameter of type '(value: number) => Promise<any>'.
275
275
var s9c = s9.then(testFunction9P, testFunction9, testFunction9); // error
276
276
~~~~~~~~~~~~~~
277
-
!!! error TS2345: Argument of type '(x: number, cb: <U>(a: U) => U) => Promise<number>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
277
+
!!! error TS2345: Argument of type '(x: any, cb: <U>(a: U) => U) => Promise<any>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
278
278
var s9d = s9.then(sPromise, sPromise, sPromise); // ok
279
279
var s9e = s9.then(nPromise, nPromise, nPromise); // ok
280
280
var s9f = s9.then(testFunction, sIPromise, nIPromise); // error
0 commit comments