diff options
author | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-04-04 15:47:08 +0800 |
---|---|---|
committer | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-04-04 15:47:08 +0800 |
commit | 3c5b9d1be3db1ee2657ec10fc316b97a65c03542 (patch) | |
tree | 1d0867ea1ab3fd6035ea7d79dc77ba1e37c7bc13 /modules/gdscript/tests/scripts/parser/errors | |
parent | c630c2001dbe2e25e0d372bd22ce85cdc2822eb0 (diff) |
Fix issues with multiple bind patterns in match statement
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/errors')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.gd | 4 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.out | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.gd b/modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.gd new file mode 100644 index 0000000000..4608c778aa --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.gd @@ -0,0 +1,4 @@ +func test(): + match 1: + [[[var a]]], 2: + pass diff --git a/modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.out b/modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.out new file mode 100644 index 0000000000..1cdc24683b --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/match_multiple_variable_binds_in_branch.out @@ -0,0 +1,2 @@ +GDTEST_PARSER_ERROR +Cannot use a variable bind with multiple patterns. |