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