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