14 lines
260 B
Text
14 lines
260 B
Text
|
=== tests/cases/compiler/functionCall4.ts ===
|
||
|
function foo():any{return ""};
|
||
|
>foo : () => any
|
||
|
|
||
|
function bar():()=>any{return foo};
|
||
|
>bar : () => () => any
|
||
|
>foo : () => any
|
||
|
|
||
|
var x = bar();
|
||
|
>x : () => any
|
||
|
>bar() : () => any
|
||
|
>bar : () => () => any
|
||
|
|