14 lines
489 B
Text
14 lines
489 B
Text
=== 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))
|
|
|