a515b199b7
Fixes #93. This is an evolution of #220.
7 lines
No EOL
297 B
Text
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'. |