8 lines
331 B
Text
8 lines
331 B
Text
=== 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
|
|
>1 : number
|
|
|