1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix 'unreachable-code' false-positive, fixes #55154

This commit is contained in:
Pawel Lampe
2021-11-21 15:53:21 +01:00
parent ed02b8af59
commit 86c0e38e8f
3 changed files with 19 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
func test():
var foo := "bar"
match foo:
"baz":
return
_:
pass
match foo:
"baz":
return
match foo:
"bar":
pass
_:
return
print("reached")

View File

@@ -0,0 +1,2 @@
GDTEST_OK
reached