2014-07-13 01:04:16 +02:00
|
|
|
//// [contextualTyping32.ts]
|
|
|
|
function foo(param: {():number; (i:number):number; }[]) { }; foo([function(){return 1;}, function(){return 4}]);
|
|
|
|
|
|
|
|
//// [contextualTyping32.js]
|
2015-03-09 02:23:23 +01:00
|
|
|
function foo(param) {
|
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
;
|
2015-03-09 02:23:23 +01:00
|
|
|
foo([
|
|
|
|
function () {
|
|
|
|
return 1;
|
|
|
|
},
|
|
|
|
function () {
|
|
|
|
return 4;
|
|
|
|
}
|
|
|
|
]);
|