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