TypeScript/tests/baselines/reference/functionOverloads34.errors.txt
2014-09-12 13:35:07 -07:00

11 lines
460 B
Plaintext

tests/cases/compiler/functionOverloads34.ts(4,9): error TS2346: Supplied parameters do not match any signature of call target.
==== tests/cases/compiler/functionOverloads34.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.