mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
13 lines
206 B
TypeScript
13 lines
206 B
TypeScript
const [...a,] = [];
|
|
const {...b,} = {};
|
|
let c, d;
|
|
([...c,] = []);
|
|
({...d,} = {});
|
|
|
|
// Allowed for non-rest elements
|
|
const [e,] = <any>[];
|
|
const {f,} = <any>{};
|
|
let g, h;
|
|
([g,] = <any>[]);
|
|
({h,} = <any>{});
|