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

17 lines
610 B
Plaintext

==== tests/cases/compiler/noImplicitAnyFunctionExpressionAssignment.ts (2 errors) ====
var x: (a: any) => void = function <T>(x: T) {
~~~~~~~~~~~~~~~~~~~~
return null;
~~~~~~~~~~~~~~~~
};
~
!!! Function expression, which lacks return-type annotation, implicitly has an 'any' return type.
var x2: (a: any) => void = function f<T>(x: T) {
~~~~~~~~~~~~~~~~~~~~~
return null;
~~~~~~~~~~~~~~~~
};
~
!!! 'f', which lacks return-type annotation, implicitly has an 'any' return type.