TypeScript/tests/baselines/reference/functionOverloads2.errors.txt
2014-07-24 19:39:50 -07:00

7 lines
319 B
Plaintext

==== 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);
~~~~
!!! Argument of type 'boolean' is not assignable to parameter of type 'number'.