5 lines
No EOL
329 B
Text
5 lines
No EOL
329 B
Text
==== tests/cases/compiler/overloadResolutionOverCTLambda.ts (1 errors) ====
|
|
function foo(b: (item: number) => boolean) { }
|
|
foo(a => a); // can not convert (number)=>bool to (number)=>number
|
|
~~~~~~
|
|
!!! Argument of type '(a: number) => number' is not assignable to parameter of type '(item: number) => boolean'. |