mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
GDScript: Properly catch error when missing index in subscript
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
func test():
|
||||
var array = [1, 2, 3]
|
||||
array[] = 4
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "[".
|
||||
Reference in New Issue
Block a user