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