2014-07-13 01:04:16 +02:00
|
|
|
//// [contextualTyping33.ts]
|
|
|
|
function foo(param: {():number; (i:number):number; }[]) { }; foo([function(){return 1;}, function(){return "foo"}]);
|
|
|
|
|
|
|
|
//// [contextualTyping33.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 "foo";
|
|
|
|
}]);
|