TypeScript/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.types

14 lines
297 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/functionWithAnyReturnTypeAndNoReturnExpression.ts ===
// All should be allowed
function f(): any { }
>f : () => any
2014-08-15 23:33:16 +02:00
var f2: () => any = () => { };
>f2 : () => any
2014-08-15 23:33:16 +02:00
>() => { } : () => void
var f3 = (): any => { };
>f3 : () => any
2014-08-15 23:33:16 +02:00
>(): any => { } : () => any