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