1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

GDScript: Fix parsing unexpected break/continue in lambda

This commit is contained in:
Dmitrii Maganov
2023-02-23 04:13:09 +02:00
parent 19c9fd6926
commit b0b1eaeb6d
5 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
func test():
for index in range(0, 1):
var lambda := func():
continue
print('not ok')

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Cannot use "continue" outside of a loop.