aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-04-20 09:19:59 +0800
committerLi Jin <dragon-fly@qq.com>2022-04-20 09:19:59 +0800
commit53bd5a32e30493f4915e79bfb63b1eec846f1a7f (patch)
treec8a3378538518e3eacd9bc6c8fda924012d644d3 /spec/inputs
parentba1081a851dd6b3c76be5ad8bb9cb7fd643fc792 (diff)
downloadyuescript-53bd5a32e30493f4915e79bfb63b1eec846f1a7f.tar.gz
yuescript-53bd5a32e30493f4915e79bfb63b1eec846f1a7f.tar.bz2
yuescript-53bd5a32e30493f4915e79bfb63b1eec846f1a7f.zip
add placeholder support for list destructuring. fix part of issue #93.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/destructure.yue3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/inputs/destructure.yue b/spec/inputs/destructure.yue
index e1c6b27..a235abd 100644
--- a/spec/inputs/destructure.yue
+++ b/spec/inputs/destructure.yue
@@ -178,3 +178,6 @@ do
178 for {left = "null", right = false} in *tuples 178 for {left = "null", right = false} in *tuples
179 print left, right 179 print left, right
180 180
181do
182 {_, a, _, b} = tb -- list placeholder
183