mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
429 B
Plaintext
12 lines
429 B
Plaintext
functionOverloads29.ts(4,9): error TS2554: Expected 1 arguments, but got 0.
|
|
|
|
|
|
==== functionOverloads29.ts (1 errors) ====
|
|
function foo(bar:string):string;
|
|
function foo(bar:number):number;
|
|
function foo(bar:any):any{ return bar }
|
|
var x = foo();
|
|
~~~
|
|
!!! error TS2554: Expected 1 arguments, but got 0.
|
|
!!! related TS6210 functionOverloads29.ts:1:14: An argument for 'bar' was not provided.
|
|
|