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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user