TypeScript/tests/baselines/reference/functionOverloads40.errors.txt
2014-07-12 17:30:19 -07:00

8 lines
342 B
Plaintext

==== tests/cases/compiler/functionOverloads40.ts (1 errors) ====
function foo(bar:{a:number;}[]):string;
function foo(bar:{a:boolean;}[]):number;
function foo(bar:{a:any;}[]):any{ return bar }
var x = foo([{a:'bar'}]);
~~~~~~~~~~~~~~~~
!!! Supplied parameters do not match any signature of call target.