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
commit 81fe3715b8
No known key found for this signature in database
GPG key ID: C3336907360768E1
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