11 lines
No EOL
300 B
Text
11 lines
No EOL
300 B
Text
==== tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts (1 errors) ====
|
|
interface Foo<T> {
|
|
x: T;
|
|
}
|
|
function foo(a) {
|
|
return null;
|
|
}
|
|
foo((arg: Foo) => { return arg.x; });
|
|
~~~
|
|
!!! Generic type 'Foo<T>' requires 1 type argument(s).
|
|
|