You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #59863 from cdemirer/fix-match-multiple-bind-single-pattern
Fix issues with multiple bind patterns in match statement
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
func test():
|
||||
match 1:
|
||||
[[[var a]]], 2:
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Cannot use a variable bind with multiple patterns.
|
||||
@@ -0,0 +1,6 @@
|
||||
func test():
|
||||
match [1, 2, 3]:
|
||||
[var a, var b, var c]:
|
||||
print(a == 1)
|
||||
print(b == 2)
|
||||
print(c == 3)
|
||||
@@ -0,0 +1,4 @@
|
||||
GDTEST_OK
|
||||
true
|
||||
true
|
||||
true
|
||||
Reference in New Issue
Block a user