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

7 lines
No EOL
307 B
Text

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