TypeScript/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures2.types

22 lines
908 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts ===
var f: {
2015-04-13 23:01:57 +02:00
>f : { (x: string): string; (x: number): string; }, Symbol(f, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 0, 3))
2014-08-15 23:33:16 +02:00
(x: string): string;
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 1, 5))
2014-08-15 23:33:16 +02:00
(x: number): string
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 2, 5))
2014-08-15 23:33:16 +02:00
};
f = (a) => { return a.asdf }
>f = (a) => { return a.asdf } : (a: any) => any
2015-04-13 23:01:57 +02:00
>f : { (x: string): string; (x: number): string; }, Symbol(f, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 0, 3))
2014-08-15 23:33:16 +02:00
>(a) => { return a.asdf } : (a: any) => any
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 5, 5))
2014-08-15 23:33:16 +02:00
>a.asdf : any
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 5, 5))
2014-08-15 23:33:16 +02:00
>asdf : any