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