6e77e2e810
Also got rid of the 'terminalMessages' concept.
10 lines
799 B
Plaintext
10 lines
799 B
Plaintext
tests/cases/compiler/fixTypeParameterInSignatureWithRestParameters.ts(2,1): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
|
Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'string'.
|
|
|
|
|
|
==== tests/cases/compiler/fixTypeParameterInSignatureWithRestParameters.ts (1 errors) ====
|
|
function bar<T>(item1: T, item2: T) { }
|
|
bar(1, ""); // Should be ok
|
|
~~~
|
|
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
|
!!! error TS2453: Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'string'. |