aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/vararg.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-11-21 12:21:04 +0800
committerLi Jin <dragon-fly@qq.com>2025-11-21 12:21:04 +0800
commit43dde2fff316051d03968e8efd313f19b53112fc (patch)
treeae3f99ce6edcd397b75002003048518ee33bae5b /spec/inputs/vararg.yue
parentb462de9d09d4708490161c7c16858bce2c9cb9b6 (diff)
downloadyuescript-43dde2fff316051d03968e8efd313f19b53112fc.tar.gz
yuescript-43dde2fff316051d03968e8efd313f19b53112fc.tar.bz2
yuescript-43dde2fff316051d03968e8efd313f19b53112fc.zip
Updated syntax.v0.29.9
* Added error check for mixed use of tabs and spaces. * Supported SimpleTable destructuring for ForEach syntax.
Diffstat (limited to 'spec/inputs/vararg.yue')
-rw-r--r--spec/inputs/vararg.yue4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/vararg.yue b/spec/inputs/vararg.yue
index 941cd97..6100250 100644
--- a/spec/inputs/vararg.yue
+++ b/spec/inputs/vararg.yue
@@ -55,12 +55,12 @@ join = (...) ->
55 _ = -> 55 _ = ->
56 list = {1, 2, 3, 4, 5} 56 list = {1, 2, 3, 4, 5}
57 fn = (ok) -> 57 fn = (ok) ->
58 ok, table.unpack list 58 ok, table.unpack list
59 ok, ... = fn true 59 ok, ... = fn true
60 print ok, ... 60 print ok, ...
61 61
62 fn_many_args = -> 62 fn_many_args = ->
63 10, nil, 20, nil, 30 63 10, nil, 20, nil, 30
64 64
65 ... = fn_many_args! 65 ... = fn_many_args!
66 print select "#", ... 66 print select "#", ...