TypeScript/tests/baselines/reference/untypedArgumentInLambdaExpression.js

13 lines
247 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [untypedArgumentInLambdaExpression.ts]
declare function f(fn: (a: string) => string);
f((input): string => {
return "." + input;
});
//// [untypedArgumentInLambdaExpression.js]
f(function (input) {
return "." + input;
});