15 lines
282 B
TypeScript
15 lines
282 B
TypeScript
//// [genericLambaArgWithoutTypeArguments.ts]
|
|
interface Foo<T> {
|
|
x: T;
|
|
}
|
|
function foo(a) {
|
|
return null;
|
|
}
|
|
foo((arg: Foo) => { return arg.x; });
|
|
|
|
|
|
//// [genericLambaArgWithoutTypeArguments.js]
|
|
function foo(a) {
|
|
return null;
|
|
}
|
|
foo(function (arg) { return arg.x; });
|