GDScript: Remove function of continue for match statement
The keyword is confusing and rarely is used in the intended way. It is removed now in favor of a future feature (pattern guards) to avoid breaking compatibility later.
This commit is contained in:
parent
2ec0da1a75
commit
9462ae4783
10 changed files with 5 additions and 76 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue