7 lines
310 B
TypeScript
7 lines
310 B
TypeScript
//// [overloadResolutionOverCTLambda.ts]
|
|
function foo(b: (item: number) => boolean) { }
|
|
foo(a => a); // can not convert (number)=>bool to (number)=>number
|
|
|
|
//// [overloadResolutionOverCTLambda.js]
|
|
function foo(b) { }
|
|
foo(function (a) { return a; }); // can not convert (number)=>bool to (number)=>number
|