TypeScript/tests/baselines/reference/functionOverloads37.errors.txt

11 lines
466 B
Plaintext
Raw Normal View History

tests/cases/compiler/functionOverloads37.ts(4,9): error TS2346: Supplied parameters do not match any signature of call target.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/functionOverloads37.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();
~~~~~
!!! error TS2346: Supplied parameters do not match any signature of call target.
2014-07-13 01:04:16 +02:00