TypeScript/tests/baselines/reference/functionCall2.types
2015-04-13 14:29:37 -07:00

10 lines
314 B
Text

=== tests/cases/compiler/functionCall2.ts ===
function foo():number{return 1};
>foo : () => number, Symbol(foo, Decl(functionCall2.ts, 0, 0))
>1 : number
var x = foo();
>x : number, Symbol(x, Decl(functionCall2.ts, 1, 3))
>foo() : number
>foo : () => number, Symbol(foo, Decl(functionCall2.ts, 0, 0))