TypeScript/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.types
2014-08-15 14:37:48 -07:00

14 lines
297 B
Plaintext

=== tests/cases/compiler/functionWithAnyReturnTypeAndNoReturnExpression.ts ===
// All should be allowed
function f(): any { }
>f : () => any
var f2: () => any = () => { };
>f2 : () => any
>() => { } : () => void
var f3 = (): any => { };
>f3 : () => any
>(): any => { } : () => any