You've already forked godot
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:
@@ -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")
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_OK
|
||||
reached
|
||||
Reference in New Issue
Block a user