5 lines
151 B
TypeScript
5 lines
151 B
TypeScript
|
function foo(bar:{a:number;}[]):string;
|
||
|
function foo(bar:{a:boolean;}[]):number;
|
||
|
function foo(bar:{a:any;}[]):any{ return bar }
|
||
|
var x = foo([{}]);
|