8 lines
298 B
Plaintext
8 lines
298 B
Plaintext
|
==== tests/cases/compiler/functionOverloads29.ts (1 errors) ====
|
||
|
function foo(bar:string):string;
|
||
|
function foo(bar:number):number;
|
||
|
function foo(bar:any):any{ return bar }
|
||
|
var x = foo();
|
||
|
~~~~~
|
||
|
!!! Supplied parameters do not match any signature of call target.
|
||
|
|