17 lines
288 B
JavaScript
17 lines
288 B
JavaScript
//// [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;
|
|
});
|