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

8 lines
265 B
Plaintext

=== tests/cases/compiler/functionExpressionReturningItself.ts ===
var x = function somefn() { return somefn; };
>x : () => typeof somefn
>function somefn() { return somefn; } : () => typeof somefn
>somefn : () => typeof somefn
>somefn : () => typeof somefn