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