TypeScript/tests/baselines/reference/genericLambaArgWithoutTypeArguments.errors.txt
2014-07-12 17:30:19 -07:00

11 lines
300 B
Plaintext

==== 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).