GDScript: Properly catch error when missing index in subscript
This commit is contained in:
parent
b8fdeb6467
commit
651319de11
3 changed files with 9 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
func test():
|
||||
var array = [1, 2, 3]
|
||||
array[] = 4
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Expected expression after "[".
|
||||
Loading…
Add table
Add a link
Reference in a new issue