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