2014-07-13 01:04:16 +02:00
|
|
|
//// [overloadResolutionOverCTLambda.ts]
|
|
|
|
function foo(b: (item: number) => boolean) { }
|
|
|
|
foo(a => a); // can not convert (number)=>bool to (number)=>number
|
|
|
|
|
|
|
|
//// [overloadResolutionOverCTLambda.js]
|
2015-03-26 21:46:35 +01:00
|
|
|
function foo(b) { }
|
|
|
|
foo(function (a) { return a; }); // can not convert (number)=>bool to (number)=>number
|