You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Merge pull request #71914 from vnen/gdscript-no-continue-match
GDScript: Remove function of `continue` for match statement
This commit is contained in:
@@ -3,8 +3,6 @@ func test():
|
||||
match i:
|
||||
"Hello":
|
||||
print("hello")
|
||||
# This will fall through to the default case below.
|
||||
continue
|
||||
"Good bye":
|
||||
print("bye")
|
||||
_:
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
GDTEST_OK
|
||||
hello
|
||||
default
|
||||
This will match
|
||||
|
||||
@@ -8,11 +8,10 @@ func test():
|
||||
1234:
|
||||
print("2")
|
||||
match number:
|
||||
1234:
|
||||
print("3")
|
||||
continue
|
||||
4321:
|
||||
print("Should not be printed")
|
||||
_:
|
||||
print("Should also be printed")
|
||||
print("3")
|
||||
match number:
|
||||
1234:
|
||||
print("4")
|
||||
|
||||
@@ -2,7 +2,6 @@ GDTEST_OK
|
||||
1
|
||||
2
|
||||
3
|
||||
Should also be printed
|
||||
4
|
||||
5
|
||||
6
|
||||
|
||||
Reference in New Issue
Block a user