TypeScript/tests/baselines/reference/functionOverloads.errors.txt
Anders Hejlsberg a515b199b7 Better error messages in function calls.
Fixes #93.
This is an evolution of #220.
2014-07-24 17:00:03 -07:00

7 lines
No EOL
297 B
Text

==== tests/cases/compiler/functionOverloads.ts (1 errors) ====
function foo(): string;
function foo(bar: string): number;
function foo(bar?: string): any { return "" };
var x = foo(5);
~
!!! Argument type 'number' is not assignable to parameter type 'string'.