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