TypeScript/tests/baselines/reference/typeArgumentsOnFunctionsWithNoTypeParameters.errors.txt
2014-09-11 16:11:08 -07:00

14 lines
589 B
Plaintext

==== tests/cases/compiler/typeArgumentsOnFunctionsWithNoTypeParameters.ts (3 errors) ====
function foo<T, U>(f: (v: T) => U) {
var r1 = f<number>(1);
~~~~~~~~~~~~
!!! error TS2346: Supplied parameters do not match any signature of call target.
var r2 = f(1);
~
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'T'.
var r3 = f<any>(null);
~~~~~~~~~~~~
!!! error TS2346: Supplied parameters do not match any signature of call target.
var r4 = f(null);
}