Merge pull request #82639 from golfinq/gdscript-improve-indexing-error
GDScript: Improve error messages for invalid indexing
This commit is contained in:
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> analyzer/errors/outer_class_constants.gd
|
||||
>> 8
|
||||
>> Invalid get index 'OUTER_CONST' (on base: 'GDScript').
|
||||
>> Invalid access to property or key 'OUTER_CONST' on a base object of type 'GDScript'.
|
||||
|
||||
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> analyzer/errors/outer_class_constants_as_variant.gd
|
||||
>> 9
|
||||
>> Invalid get index 'OUTER_CONST' (on base: 'GDScript').
|
||||
>> Invalid access to property or key 'OUTER_CONST' on a base object of type 'GDScript'.
|
||||
|
||||
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> analyzer/errors/outer_class_instance_constants.gd
|
||||
>> 8
|
||||
>> Invalid get index 'OUTER_CONST' (on base: 'RefCounted (Inner)').
|
||||
>> Invalid access to property or key 'OUTER_CONST' on a base object of type 'RefCounted (Inner)'.
|
||||
|
||||
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> analyzer/errors/outer_class_instance_constants_as_variant.gd
|
||||
>> 9
|
||||
>> Invalid get index 'OUTER_CONST' (on base: 'RefCounted (Inner)').
|
||||
>> Invalid access to property or key 'OUTER_CONST' on a base object of type 'RefCounted (Inner)'.
|
||||
|
||||
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> runtime/errors/constant_array_is_deep.gd
|
||||
>> 6
|
||||
>> Invalid set index '0' (on base: 'Dictionary') with value of type 'int'
|
||||
>> Invalid assignment of property or key '0' with value of type 'int' on a base object of type 'Dictionary'.
|
||||
|
||||
@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR
|
||||
>> on function: test()
|
||||
>> runtime/errors/constant_dictionary_is_deep.gd
|
||||
>> 6
|
||||
>> Invalid set index '0' (on base: 'Array') with value of type 'int'
|
||||
>> Invalid assignment of index '0' (on base: 'Array') with value of type 'int'.
|
||||
|
||||
Reference in New Issue
Block a user