TypeScript/tests/cases/compiler/functionOverloads20.ts

4 lines
128 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
function foo(bar:{a:number;}): number;
function foo(bar:{a:string;}): string;
function foo(bar:{a:any;}): string {return ""}