TypeScript/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.types
2015-04-15 16:44:20 -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