2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionCall4.ts ===
|
|
|
|
function foo():any{return ""};
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : () => any, Symbol(foo, Decl(functionCall4.ts, 0, 0))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function bar():()=>any{return foo};
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : () => () => any, Symbol(bar, Decl(functionCall4.ts, 0, 30))
|
|
|
|
>foo : () => any, Symbol(foo, Decl(functionCall4.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x = bar();
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : () => any, Symbol(x, Decl(functionCall4.ts, 2, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>bar() : () => any
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : () => () => any, Symbol(bar, Decl(functionCall4.ts, 0, 30))
|
2014-08-15 23:33:16 +02:00
|
|
|
|