TypeScript/tests/baselines/reference/functionCall4.types
2015-04-13 14:29:37 -07:00

15 lines
489 B
Plaintext

=== tests/cases/compiler/functionCall4.ts ===
function foo():any{return ""};
>foo : () => any, Symbol(foo, Decl(functionCall4.ts, 0, 0))
>"" : string
function bar():()=>any{return foo};
>bar : () => () => any, Symbol(bar, Decl(functionCall4.ts, 0, 30))
>foo : () => any, Symbol(foo, Decl(functionCall4.ts, 0, 0))
var x = bar();
>x : () => any, Symbol(x, Decl(functionCall4.ts, 2, 3))
>bar() : () => any
>bar : () => () => any, Symbol(bar, Decl(functionCall4.ts, 0, 30))