TypeScript/tests/cases/compiler/functionWithAnyReturnTypeAndNoReturnExpression.ts

4 lines
102 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// All should be allowed
function f(): any { }
var f2: () => any = () => { };
var f3 = (): any => { };