|
1 | 1 | tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments.ts(26,10): error TS2453: The type argument for type parameter 'U' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
2 |
| - Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'string'. |
| 2 | + Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'string'. |
3 | 3 | tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments.ts(30,15): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
4 |
| - Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'T'. |
| 4 | + Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'T'. |
5 | 5 | tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments.ts(33,15): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
6 |
| - Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'T'. |
| 6 | + Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'T'. |
7 | 7 | tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments.ts(34,16): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
8 |
| - Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'T'. |
| 8 | + Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'T'. |
9 | 9 | tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments.ts(35,15): error TS2453: The type argument for type parameter 'U' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
10 |
| - Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'string'. |
| 10 | + Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'string'. |
11 | 11 |
|
12 | 12 |
|
13 | 13 | ==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments.ts (5 errors) ====
|
@@ -39,26 +39,26 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFun
|
39 | 39 | var r8 = foo3(1, function (a) { return '' }, 1); // error
|
40 | 40 | ~~~~
|
41 | 41 | !!! error TS2453: The type argument for type parameter 'U' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
42 |
| -!!! error TS2453: Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'string'. |
| 42 | +!!! error TS2453: Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'string'. |
43 | 43 | var r9 = foo3<number, string>(1, (a) => '', ''); // string
|
44 | 44 |
|
45 | 45 | function other<T, U>(t: T, u: U) {
|
46 | 46 | var r10 = foo2(1, (x: T) => ''); // error
|
47 | 47 | ~~~~
|
48 | 48 | !!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
49 |
| -!!! error TS2453: Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'T'. |
| 49 | +!!! error TS2453: Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'T'. |
50 | 50 | var r10 = foo2(1, (x) => ''); // string
|
51 | 51 |
|
52 | 52 | var r11 = foo3(1, (x: T) => '', ''); // error
|
53 | 53 | ~~~~
|
54 | 54 | !!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
55 |
| -!!! error TS2453: Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'T'. |
| 55 | +!!! error TS2453: Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'T'. |
56 | 56 | var r11b = foo3(1, (x: T) => '', 1); // error
|
57 | 57 | ~~~~
|
58 | 58 | !!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
59 |
| -!!! error TS2453: Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'T'. |
| 59 | +!!! error TS2453: Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'T'. |
60 | 60 | var r12 = foo3(1, function (a) { return '' }, 1); // error
|
61 | 61 | ~~~~
|
62 | 62 | !!! error TS2453: The type argument for type parameter 'U' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
63 |
| -!!! error TS2453: Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'string'. |
| 63 | +!!! error TS2453: Type argument candidate '1' is not a valid type argument because it is not a supertype of candidate 'string'. |
64 | 64 | }
|
0 commit comments