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