mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
75 lines
1.7 KiB
Plaintext
75 lines
1.7 KiB
Plaintext
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:1:1]
|
|
1 | [...a=1]=[];
|
|
: ^^^^^^
|
|
2 | [a,...b=1]=[];
|
|
`----
|
|
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:1:1]
|
|
1 | [...a=1]=[];
|
|
2 | [a,...b=1]=[];
|
|
: ^^^^^^
|
|
`----
|
|
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:3:1]
|
|
3 |
|
|
4 | ([...a=1])=>{};
|
|
: ^^^^^^
|
|
5 | ([a,...b=1])=>{};
|
|
`----
|
|
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:4:1]
|
|
4 | ([...a=1])=>{};
|
|
5 | ([a,...b=1])=>{};
|
|
: ^^^^^^
|
|
`----
|
|
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:6:1]
|
|
6 |
|
|
7 | ({...a=1}={});
|
|
: ^^^^^^
|
|
8 | ({a,...b=1}={});
|
|
`----
|
|
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:7:1]
|
|
7 | ({...a=1}={});
|
|
8 | ({a,...b=1}={});
|
|
: ^^^^^^
|
|
`----
|
|
|
|
x `...` must be followed by an identifier in declaration contexts
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:9:1]
|
|
9 |
|
|
10 | ({...a=1})=>{};
|
|
: ^^^^^^
|
|
11 | ({a,...b=1})=>{};
|
|
`----
|
|
|
|
x `...` must be followed by an identifier in declaration contexts
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:10:1]
|
|
10 | ({...a=1})=>{};
|
|
11 | ({a,...b=1})=>{};
|
|
: ^^^^^^
|
|
`----
|
|
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:12:1]
|
|
12 |
|
|
13 | (...a=1)=>{};
|
|
: ^^^^^^
|
|
14 | (a,...b=1)=>{};
|
|
`----
|
|
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:13:1]
|
|
13 | (...a=1)=>{};
|
|
14 | (a,...b=1)=>{};
|
|
: ^^^^^^
|
|
`----
|