[GDScript] Correctly report invalid read-only access
This commit is contained in:
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> runtime/errors/constant_array_is_deep.gd
|
||||
>> 6
|
||||
>> Invalid assignment of property or key '0' with value of type 'int' on a base object of type 'Dictionary'.
|
||||
>> Invalid assignment on read-only value (on base: 'Dictionary').
|
||||
|
||||
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> runtime/errors/constant_dictionary_is_deep.gd
|
||||
>> 6
|
||||
>> Invalid assignment of index '0' (on base: 'Array') with value of type 'int'.
|
||||
>> Invalid assignment on read-only value (on base: 'Array').
|
||||
|
||||
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> runtime/errors/read_only_dictionary.gd
|
||||
>> 4
|
||||
>> Invalid assignment of property or key 'a' with value of type 'int' on a base object of type 'Dictionary'.
|
||||
>> Invalid assignment on read-only value (on base: 'Dictionary').
|
||||
|
||||
Reference in New Issue
Block a user