godot/modules/gdscript/tests/scripts/runtime
George Marques 81c7cae567
GDScript: Don't get invalid dictionary key during completion
We try to get the value out of a dictionary in order to establish its
type for completion purposes. However, if the dictionary or the key
is not a constant, we cannot safely get the actual value, so we skip
this and just try to infer from static typing.

Getting the value directly with `Variant::get()` generate errors if the
base is a Dictionary and the key is of an invalid type. So before trying
to get it we use the Dictionary validator to make sure it we can safely
try to get the key.
2025-07-24 15:02:40 -03:00
..
errors GDScript: Don't get invalid dictionary key during completion 2025-07-24 15:02:40 -03:00
features GDScript: Replace abstract keyword with @abstract annotation 2025-06-23 12:24:45 -07:00