The new baselines all look correct to me, but obviously a number of the tests need to be updated to reflect union types and the new behavior of best common type. This commit does not cover that.
9 lines
No EOL
418 B
Text
9 lines
No EOL
418 B
Text
tests/cases/compiler/typeInferenceConflictingCandidates.ts(3,1): error TS2346: Supplied parameters do not match any signature of call target.
|
|
|
|
|
|
==== 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 TS2346: Supplied parameters do not match any signature of call target. |