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