Files
tsgo/testdata/baselines/reference/submodule/compiler/argumentsPropertyNameInJsMode1.errors.txt
2025-10-28 01:34:05 +00:00

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.