2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/contextualTyping32.ts ===
|
|
|
|
function foo(param: {():number; (i:number):number; }[]) { }; foo([function(){return 1;}, function(){return 4}]);
|
|
|
|
>foo : (param: { (): number; (i: number): number; }[]) => void
|
|
|
|
>param : { (): number; (i: number): number; }[]
|
|
|
|
>i : number
|
|
|
|
>foo([function(){return 1;}, function(){return 4}]) : void
|
|
|
|
>foo : (param: { (): number; (i: number): number; }[]) => void
|
2014-10-18 01:53:18 +02:00
|
|
|
>[function(){return 1;}, function(){return 4}] : (() => number)[]
|
2014-08-15 23:33:16 +02:00
|
|
|
>function(){return 1;} : () => number
|
|
|
|
>function(){return 4} : () => number
|
|
|
|
|