6e77e2e810
Also got rid of the 'terminalMessages' concept.
11 lines
785 B
Plaintext
11 lines
785 B
Plaintext
tests/cases/compiler/typeInferenceConflictingCandidates.ts(3,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 'string' is not a valid type argument because it is not a supertype of candidate 'number'.
|
|
|
|
|
|
==== tests/cases/compiler/typeInferenceConflictingCandidates.ts (1 errors) ====
|
|
declare function g<T>(a: T, b: T, c: (t: T) => T): T;
|
|
|
|
g("", 3, a => a);
|
|
~
|
|
!!! 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 'string' is not a valid type argument because it is not a supertype of candidate 'number'. |