mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #80085 from vnen/gdscript-pattern-guards
GDScript: Implement pattern guards for match statement
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
func test():
|
||||
match 0:
|
||||
_ when a == 0:
|
||||
print("a does not exist")
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Identifier "a" not declared in the current scope.
|
||||
Reference in New Issue
Block a user