21 lines
458 B
Text
21 lines
458 B
Text
=== tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts ===
|
|
var f: {
|
|
>f : { (x: string): string; (x: number): string; }
|
|
|
|
(x: string): string;
|
|
>x : string
|
|
|
|
(x: number): string
|
|
>x : number
|
|
|
|
};
|
|
|
|
f = (a) => { return a.asdf }
|
|
>f = (a) => { return a.asdf } : (a: any) => any
|
|
>f : { (x: string): string; (x: number): string; }
|
|
>(a) => { return a.asdf } : (a: any) => any
|
|
>a : any
|
|
>a.asdf : any
|
|
>a : any
|
|
>asdf : any
|
|
|