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]
|
|
|
|
function foo(b) {
|
|
|
|
}
|
2014-08-16 00:49:09 +02:00
|
|
|
foo(function (a) { return a; }); // can not convert (number)=>bool to (number)=>number
|