mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
290 B
TypeScript
15 lines
290 B
TypeScript
//// [tests/cases/compiler/functionCall4.ts] ////
|
|
|
|
//// [functionCall4.ts]
|
|
function foo():any{return ""};
|
|
function bar():()=>any{return foo};
|
|
var x = bar();
|
|
|
|
//// [functionCall4.js]
|
|
"use strict";
|
|
function foo() { return ""; }
|
|
;
|
|
function bar() { return foo; }
|
|
;
|
|
var x = bar();
|