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