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