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