2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/contextualTyping23.ts ===
|
|
|
|
var foo:(a:{():number; (i:number):number; })=>number; foo = function(a){return 5};
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : (a: { (): number; (i: number): number; }) => number, Symbol(foo, Decl(contextualTyping23.ts, 0, 3))
|
|
|
|
>a : { (): number; (i: number): number; }, Symbol(a, Decl(contextualTyping23.ts, 0, 9))
|
|
|
|
>i : number, Symbol(i, Decl(contextualTyping23.ts, 0, 24))
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo = function(a){return 5} : (a: { (): number; (i: number): number; }) => number
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : (a: { (): number; (i: number): number; }) => number, Symbol(foo, Decl(contextualTyping23.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>function(a){return 5} : (a: { (): number; (i: number): number; }) => number
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : { (): number; (i: number): number; }, Symbol(a, Decl(contextualTyping23.ts, 0, 69))
|
2015-04-13 21:36:11 +02:00
|
|
|
>5 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|