22 lines
908 B
Plaintext
22 lines
908 B
Plaintext
=== tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts ===
|
|
var f: {
|
|
>f : { (x: string): string; (x: number): string; }, Symbol(f, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 0, 3))
|
|
|
|
(x: string): string;
|
|
>x : string, Symbol(x, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 1, 5))
|
|
|
|
(x: number): string
|
|
>x : number, Symbol(x, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 2, 5))
|
|
|
|
};
|
|
|
|
f = (a) => { return a.asdf }
|
|
>f = (a) => { return a.asdf } : (a: any) => any
|
|
>f : { (x: string): string; (x: number): string; }, Symbol(f, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 0, 3))
|
|
>(a) => { return a.asdf } : (a: any) => any
|
|
>a : any, Symbol(a, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 5, 5))
|
|
>a.asdf : any
|
|
>a : any, Symbol(a, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 5, 5))
|
|
>asdf : any
|
|
|