summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/00_syntax/20_list_expressions4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/00_syntax/20_list_expressions b/tests/00_syntax/20_list_expressions
index ef1b0c4..d5ba459 100644
--- a/tests/00_syntax/20_list_expressions
+++ b/tests/00_syntax/20_list_expressions
@@ -13,6 +13,7 @@ function call
true
true
true
+[ 2, 3 ]
-- End --
-- Testcase --
@@ -37,5 +38,8 @@ true
// computed property access uses the last list expression value
print(({foo: true})["bar", "baz", "foo"], "\n");
+
+ // same list semantics apply to function call parameters
+ ((...args) => print(args, "\n"))((1, 2), 3);
%}
-- End --