TypeScript/tests/baselines/reference/functionCall3.types
2016-09-01 14:25:44 -07:00

12 lines
196 B
Plaintext

=== tests/cases/compiler/functionCall3.ts ===
function foo():any[]{return [1];}
>foo : () => any[]
>[1] : number[]
>1 : 1
var x = foo();
>x : any[]
>foo() : any[]
>foo : () => any[]