2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/untypedArgumentInLambdaExpression.ts ===
|
|
|
|
declare function f(fn: (a: string) => string);
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : (fn: (a: string) => string) => any
|
2014-08-15 23:33:16 +02:00
|
|
|
>fn : (a: string) => string
|
|
|
|
>a : string
|
|
|
|
|
|
|
|
f((input): string => {
|
2014-08-22 03:39:46 +02:00
|
|
|
>f((input): string => { return "." + input;}) : any
|
2014-08-28 21:52:44 +02:00
|
|
|
>f : (fn: (a: string) => string) => any
|
2014-08-22 03:39:46 +02:00
|
|
|
>(input): string => { return "." + input;} : (input: string) => string
|
2014-08-15 23:33:16 +02:00
|
|
|
>input : string
|
|
|
|
|
|
|
|
return "." + input;
|
|
|
|
>"." + input : string
|
|
|
|
>input : string
|
|
|
|
|
|
|
|
});
|
|
|
|
|