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

17 lines
610 B
Plaintext
Raw Normal View History

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