1
0
Fork 0
godot/modules/gdscript/tests/scripts/runtime/errors
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
..
assign_freed_instance.gd
assign_freed_instance.out
assign_to_read_only_property.gd
assign_to_read_only_property.out
bad_conversion_for_default_parameter.gd
bad_conversion_for_default_parameter.out
callable_call_after_free_object.gd
callable_call_after_free_object.out
callable_call_invalid_arg_type.gd
callable_call_invalid_arg_type.out
cast_freed_object.gd
cast_freed_object.out
cast_int_to_array.gd
cast_int_to_array.out
cast_int_to_object.gd
cast_int_to_object.out
cast_object_to_int.gd
cast_object_to_int.out
constant_array_is_deep.gd
constant_array_is_deep.out
constant_dictionary_is_deep.gd
constant_dictionary_is_deep.out
division_by_zero.gd
division_by_zero.out
for_loop_iterator_type_not_match_specified.gd
for_loop_iterator_type_not_match_specified.out
gd_utility_function_wrong_arg.gd
gd_utility_function_wrong_arg.out
invalid_property_assignment.gd
invalid_property_assignment.out
modulo_by_zero.gd
modulo_by_zero.out
non_static_method_call_on_native_class.gd
non_static_method_call_on_native_class.out
outer_class_constants.gd
outer_class_constants.out
read_only_dictionary.gd
read_only_dictionary.out
reload_suspended_function.notest.gd
reload_suspended_function.out
reload_suspended_function_helper.notest.gd
typed_array_assign_basic_to_typed.gd
typed_array_assign_basic_to_typed.out
typed_array_assign_differently_typed.gd
typed_array_assign_differently_typed.out
typed_array_assign_wrong_to_typed.gd
typed_array_assign_wrong_to_typed.out GDScript: Don't get invalid dictionary key during completion 2025-07-24 15:02:40 -03:00
typed_array_pass_basic_to_typed.gd
typed_array_pass_basic_to_typed.out
typed_array_pass_differently_to_typed.gd
typed_array_pass_differently_to_typed.out
typed_dictionary_assign_basic_to_typed.gd
typed_dictionary_assign_basic_to_typed.out
typed_dictionary_assign_differently_typed.gd
typed_dictionary_assign_differently_typed.out
typed_dictionary_assign_differently_typed_key.gd
typed_dictionary_assign_differently_typed_key.out
typed_dictionary_assign_differently_typed_value.gd
typed_dictionary_assign_differently_typed_value.out
typed_dictionary_assign_wrong_to_typed.gd
typed_dictionary_assign_wrong_to_typed.out GDScript: Don't get invalid dictionary key during completion 2025-07-24 15:02:40 -03:00
typed_dictionary_pass_basic_to_typed.gd
typed_dictionary_pass_basic_to_typed.out
typed_dictionary_pass_differently_to_typed.gd
typed_dictionary_pass_differently_to_typed.out
use_return_value_of_free_call.gd
use_return_value_of_free_call.out
use_return_value_of_void_builtin_method_call.gd
use_return_value_of_void_builtin_method_call.out
use_return_value_of_void_native_method_call.gd
use_return_value_of_void_native_method_call.out
utility_function_wrong_arg.gd
utility_function_wrong_arg.out