1
0
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:
Rémi Verschelde
2023-01-23 15:35:55 +01:00
10 changed files with 5 additions and 76 deletions

View File

@@ -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")
_:

View File

@@ -1,4 +1,3 @@
GDTEST_OK
hello
default
This will match

View File

@@ -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")

View File

@@ -2,7 +2,6 @@ GDTEST_OK
1
2
3
Should also be printed
4
5
6