13 lines
720 B
Text
13 lines
720 B
Text
=== tests/cases/compiler/contextualTyping22.ts ===
|
|
var foo:(a:number)=>number = function(a){return a}; foo = function(b){return b};
|
|
>foo : (a: number) => number, Symbol(foo,Decl(contextualTyping22.ts,0,3))
|
|
>a : number, Symbol(a,Decl(contextualTyping22.ts,0,9))
|
|
>function(a){return a} : (a: number) => number
|
|
>a : number, Symbol(a,Decl(contextualTyping22.ts,0,38))
|
|
>a : number, Symbol(a,Decl(contextualTyping22.ts,0,38))
|
|
>foo = function(b){return b} : (b: number) => number
|
|
>foo : (a: number) => number, Symbol(foo,Decl(contextualTyping22.ts,0,3))
|
|
>function(b){return b} : (b: number) => number
|
|
>b : number, Symbol(b,Decl(contextualTyping22.ts,0,67))
|
|
>b : number, Symbol(b,Decl(contextualTyping22.ts,0,67))
|
|
|