diff options
author | Li Jin <dragon-fly@qq.com> | 2022-04-20 09:19:59 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-04-20 09:19:59 +0800 |
commit | 53bd5a32e30493f4915e79bfb63b1eec846f1a7f (patch) | |
tree | c8a3378538518e3eacd9bc6c8fda924012d644d3 /spec/outputs | |
parent | ba1081a851dd6b3c76be5ad8bb9cb7fd643fc792 (diff) | |
download | yuescript-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/outputs')
-rw-r--r-- | spec/outputs/destructure.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/outputs/destructure.lua b/spec/outputs/destructure.lua index 1862b85..9b16181 100644 --- a/spec/outputs/destructure.lua +++ b/spec/outputs/destructure.lua | |||
@@ -358,3 +358,10 @@ do | |||
358 | print(left, right) | 358 | print(left, right) |
359 | end | 359 | end |
360 | end | 360 | end |
361 | do | ||
362 | local a, b | ||
363 | do | ||
364 | local _obj_0 = tb | ||
365 | a, b = _obj_0[2], _obj_0[4] | ||
366 | end | ||
367 | end | ||