9 lines
326 B
Plaintext
9 lines
326 B
Plaintext
=== 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 : 1
|
|
|