=== tests/cases/compiler/contextualTyping40.ts ===
var foo = <{():number; (i:number):number; }> function(){return 1;};
>foo : { (): number; (i: number): number; }
><{():number; (i:number):number; }> function(){return 1;} : { (): number; (i: number): number; }
>i : number
>function(){return 1;} : () => number

