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-02-07 03:45:09 +01:00
|
|
|
function foo(param) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
;
|
|
|
|
foo([function () {
|
|
|
|
return 1;
|
|
|
|
}, function () {
|
|
|
|
return 4;
|
|
|
|
}]);
|