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