mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
11 lines
304 B
TypeScript
11 lines
304 B
TypeScript
const [a, b = a] = [1]; // ok
|
|
const [c, d = c, e = e] = [1]; // error for e = e
|
|
const [f, g = f, h = i, i = f] = [1]; // error for h = i
|
|
|
|
(function ([a, b = a]) { // ok
|
|
})([1]);
|
|
(function ([c, d = c, e = e]) { // error for e = e
|
|
})([1]);
|
|
(function ([f, g = f, h = i, i = f]) { // error for h = i
|
|
})([1])
|