Merge pull request #55201 from Scony/fix-unreachable-code-false-positive

This commit is contained in:
Rémi Verschelde
2022-05-18 16:04:12 +02:00
committed by GitHub
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