summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/errors/array_consecutive_commas.gd
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/errors/array_consecutive_commas.gd')
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/array_consecutive_commas.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/errors/array_consecutive_commas.gd b/modules/gdscript/tests/scripts/parser/errors/array_consecutive_commas.gd
new file mode 100644
index 0000000000..b45f99fdd0
--- /dev/null
+++ b/modules/gdscript/tests/scripts/parser/errors/array_consecutive_commas.gd
@@ -0,0 +1,3 @@
+func test():
+ # Arrays with consecutive commas are not allowed.
+ var array = ["arrays",,,,]