8 lines
225 B
TypeScript
8 lines
225 B
TypeScript
//// [functionOverloads20.ts]
|
|
function foo(bar:{a:number;}): number;
|
|
function foo(bar:{a:string;}): string;
|
|
function foo(bar:{a:any;}): string {return ""}
|
|
|
|
|
|
//// [functionOverloads20.js]
|
|
function foo(bar) { return ""; }
|