Merge pull request #80085 from vnen/gdscript-pattern-guards

GDScript: Implement pattern guards for match statement
This commit is contained in:
Yuri Sizov
2023-09-28 20:03:57 +02:00
15 changed files with 163 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
func test():
match 0:
_ when a == 0:
print("a does not exist")

View File

@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Identifier "a" not declared in the current scope.