mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 19:22:32 +03:00
85 lines
2.1 KiB
Plaintext
85 lines
2.1 KiB
Plaintext
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:1:1]
|
|
1 | [...a, b] = [...spread];
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:2:1]
|
|
2 | const [...a, b] = [...spread];
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:3:1]
|
|
3 | ([...a, b]) => {};
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:4:1]
|
|
4 | ({ ...a, b }) => {};
|
|
: ^^^^
|
|
`----
|
|
|
|
x A rest parameter must be last in a parameter list
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:5:1]
|
|
5 | (...a, b) => {};
|
|
: ^^^^
|
|
`----
|
|
|
|
x A rest parameter must be last in a parameter list
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:7:5]
|
|
7 | constructor(...a, b) {}
|
|
: ^^^^
|
|
`----
|
|
|
|
x A rest parameter must be last in a parameter list
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:8:5]
|
|
8 | fn(...a, b) {}
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:10:1]
|
|
10 | function fn([...a, b]) {}
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:11:1]
|
|
11 | function fn({ ...a, b }) {}
|
|
: ^^^^
|
|
`----
|
|
|
|
x A rest parameter must be last in a parameter list
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:12:1]
|
|
12 | function fn(...a, b) {}
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:13:1]
|
|
13 | ({ ...a, b } = { ...spread });
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:14:1]
|
|
14 | const { ...a, b } = { ...spread };
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:15:1]
|
|
15 | for ([...a,b,] of a) {}
|
|
: ^^^^
|
|
`----
|
|
|
|
x Rest element must be final element
|
|
,-[$DIR/tests/errors/rest-not-last/input.js:16:1]
|
|
16 | for ({...a,b,} of b) {}
|
|
: ^^^^
|
|
`----
|