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