diff options
author | Li Jin <dragon-fly@qq.com> | 2022-07-26 11:34:34 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-07-26 11:34:34 +0800 |
commit | f7150a004e26f446fbf7a47bae368f209248fa67 (patch) | |
tree | 28cbfc756cfef955a6a40f62d3395920938256db /spec/outputs/syntax.lua | |
parent | 13c7eb4252e8c4228fabf1ade13b7b9bcbd80656 (diff) | |
download | yuescript-f7150a004e26f446fbf7a47bae368f209248fa67.tar.gz yuescript-f7150a004e26f446fbf7a47bae368f209248fa67.tar.bz2 yuescript-f7150a004e26f446fbf7a47bae368f209248fa67.zip |
make destructuring work on function multiple returned values, fix `a, b[] = 1` crashing issue, no longer support implicit declaring variable to be nil.
Diffstat (limited to 'spec/outputs/syntax.lua')
-rw-r--r-- | spec/outputs/syntax.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/outputs/syntax.lua b/spec/outputs/syntax.lua index a4cb8e2..22b6b80 100644 --- a/spec/outputs/syntax.lua +++ b/spec/outputs/syntax.lua | |||
@@ -1,6 +1,6 @@ | |||
1 | local a = 1 + 2 * 3 / 6 | 1 | local a = 1 + 2 * 3 / 6 |
2 | local bunch, go, here | 2 | local bunch, go, here |
3 | a, bunch, go, here = another, world | 3 | a, bunch, go, here = another, world, nil, nil |
4 | func(arg1, arg2, another, arg3) | 4 | func(arg1, arg2, another, arg3) |
5 | local we | 5 | local we |
6 | here, we = function() end, yeah | 6 | here, we = function() end, yeah |