aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-12-19 23:29:07 +0800
committerLi Jin <dragon-fly@qq.com>2023-12-19 23:29:07 +0800
commit7de25e2ef75a748356c79d0015a5d934dde4c216 (patch)
tree4b6eb791750a93e1ab68066cd503247dba91f80d /spec/inputs
parent8a7b5cc48c22f910a02320b547b76283307a1b83 (diff)
downloadyuescript-7de25e2ef75a748356c79d0015a5d934dde4c216.tar.gz
yuescript-7de25e2ef75a748356c79d0015a5d934dde4c216.tar.bz2
yuescript-7de25e2ef75a748356c79d0015a5d934dde4c216.zip
fix a const list destructuring case.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/attrib.yue3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/inputs/attrib.yue b/spec/inputs/attrib.yue
index fbff75a..36aca99 100644
--- a/spec/inputs/attrib.yue
+++ b/spec/inputs/attrib.yue
@@ -14,6 +14,9 @@ do
14 const a, {b, c}, {d} = f! 14 const a, {b, c}, {d} = f!
15 15
16do 16do
17 const [a, b] = [2, 3]
18
19do
17 close v = if flag 20 close v = if flag
18 func! 21 func!
19 else 22 else