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