TypeScript/tests/baselines/reference/genericLambaArgWithoutTypeArguments.errors.txt

11 lines
300 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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).