2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/contextualTyping22.ts ===
|
|
|
|
var foo:(a:number)=>number = function(a){return a}; foo = function(b){return b};
|
2015-04-13 22:54:22 +02:00
|
|
|
>foo : (a: number) => number, Symbol(foo,Decl(contextualTyping22.ts,0,3))
|
|
|
|
>a : number, Symbol(a,Decl(contextualTyping22.ts,0,9))
|
2014-08-15 23:33:16 +02:00
|
|
|
>function(a){return a} : (a: number) => number
|
2015-04-13 22:54:22 +02:00
|
|
|
>a : number, Symbol(a,Decl(contextualTyping22.ts,0,38))
|
|
|
|
>a : number, Symbol(a,Decl(contextualTyping22.ts,0,38))
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo = function(b){return b} : (b: number) => number
|
2015-04-13 22:54:22 +02:00
|
|
|
>foo : (a: number) => number, Symbol(foo,Decl(contextualTyping22.ts,0,3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>function(b){return b} : (b: number) => number
|
2015-04-13 22:54:22 +02:00
|
|
|
>b : number, Symbol(b,Decl(contextualTyping22.ts,0,67))
|
|
|
|
>b : number, Symbol(b,Decl(contextualTyping22.ts,0,67))
|
2014-08-15 23:33:16 +02:00
|
|
|
|