2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionCall3.ts ===
|
|
|
|
function foo():any[]{return [1];}
|
|
|
|
>foo : () => any[]
|
2014-10-13 15:56:58 +02:00
|
|
|
>[1] : number[]
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x = foo();
|
|
|
|
>x : any[]
|
|
|
|
>foo() : any[]
|
|
|
|
>foo : () => any[]
|
|
|
|
|