2014-07-13 01:04:16 +02:00
|
|
|
//// [functionOverloads41.ts]
|
|
|
|
function foo(bar:{a:number;}[]):string;
|
|
|
|
function foo(bar:{a:boolean;}[]):number;
|
|
|
|
function foo(bar:{a:any;}[]):any{ return bar }
|
|
|
|
var x = foo([{}]);
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionOverloads41.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
function foo(bar) { return bar; }
|
2014-07-13 01:04:16 +02:00
|
|
|
var x = foo([{}]);
|