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