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