mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
Co-authored-by: Anders Hejlsberg <[email protected]> Co-authored-by: John Favret <[email protected]>
16 lines
316 B
Plaintext
16 lines
316 B
Plaintext
a.js(9,7): error TS2554: Expected 0-1 arguments, but got 3.
|
|
|
|
|
|
==== a.js (1 errors) ====
|
|
const foo = {
|
|
f1: (params) => { }
|
|
}
|
|
|
|
function f2(x) {
|
|
foo.f1({ x, arguments: [] });
|
|
}
|
|
|
|
f2(1, 2, 3);
|
|
~~~~
|
|
!!! error TS2554: Expected 0-1 arguments, but got 3.
|
|
|