godot-module-template/modules/gdscript/tests/scripts/runtime/features
George Marques 877802e252
GDScript: Don't warn on unassigned for builtin-typed variables
If the type of a variable is a built-in Variant type, then it will
automatically be assigned a default value based on the type. This means
that the explicit initialization may be unnecessary. Thus this commit
removes the warning in such case.

This also changes the meaning of the unassigned warning to happen when
the variable is used before being assigned, not when it has zero
assignments.
2024-04-10 11:59:57 -03:00
..
argument_count.gd Add methods to get argument count of methods 2024-03-10 11:02:43 +01:00
argument_count.out Add methods to get argument count of methods 2024-03-10 11:02:43 +01:00
array_string_stringname_equivalent.gd
array_string_stringname_equivalent.out
arrays_arent_shared.gd
arrays_arent_shared.out
assign_member_with_operation.gd
assign_member_with_operation.out
assign_operator.gd [GDScript] Fix incorrect compound assignment 2023-04-14 11:28:44 +02:00
assign_operator.out [GDScript] Fix incorrect compound assignment 2023-04-14 11:28:44 +02:00
await_on_void.gd
await_on_void.out
await_signal_with_parameters.gd Add tests for signal await with parameters 2024-04-08 19:12:01 +02:00
await_signal_with_parameters.out Add tests for signal await with parameters 2024-04-08 19:12:01 +02:00
await_without_coroutine.gd GDScript: Fix false positive REDUNDANT_AWAIT warning 2023-03-16 14:04:14 +03:00
await_without_coroutine.out
builtin_method_as_callable.gd Core: Add Callable.create static method for Variant callables 2024-02-29 10:45:00 +03:00
builtin_method_as_callable.out Core: Add Callable.create static method for Variant callables 2024-02-29 10:45:00 +03:00
chain_assignment_works.gd
chain_assignment_works.out
compare_builtin_equals_null.gd [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
compare_builtin_equals_null.out [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
compare_builtin_not_equals_null.gd [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
compare_builtin_not_equals_null.out [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
compare_null_equals_builtin.gd [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
compare_null_equals_builtin.out [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
compare_null_not_equals_builtin.gd [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
compare_null_not_equals_builtin.out [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
const_class_reference.gd Add test for const class references 2023-02-20 23:01:32 -05:00
const_class_reference.out Add test for const class references 2023-02-20 23:01:32 -05:00
const_class_reference_external.notest.gd Add test for const class references 2023-02-20 23:01:32 -05:00
constants_are_read_only.gd GDScript: Fix test for read-only state of constants 2023-01-27 05:28:08 +02:00
constants_are_read_only.out GDScript: Fix test for read-only state of constants 2023-01-27 05:28:08 +02:00
conversion_for_default_parameter.gd
conversion_for_default_parameter.out
conversions_from_native_members.gd GDScript: Fix conversions from native members accessed by identifier 2023-02-25 10:53:36 +02:00
conversions_from_native_members.out GDScript: Fix conversions from native members accessed by identifier 2023-02-25 10:53:36 +02:00
ctor_as_callable.gd Fix: Get constructor as Callable 2023-02-20 22:05:54 -05:00
ctor_as_callable.out Fix: Get constructor as Callable 2023-02-20 22:05:54 -05:00
default_set_beforehand.gd Fix GDScript code style regarding colon 2023-03-05 17:03:20 +03:00
default_set_beforehand.out GDScript: Initialize all defaults beforehand in implicit constructor 2023-02-24 22:01:06 -03:00
dictionaries_arent_shared.gd
dictionaries_arent_shared.out
dictionary_string_stringname_equivalent.gd
dictionary_string_stringname_equivalent.out
does_not_override_temp_values.gd
does_not_override_temp_values.out
emit_after_await.gd [Core] Disconnect one-shot signals before calling callbacks 2024-03-20 20:24:44 +01:00
emit_after_await.out [Core] Disconnect one-shot signals before calling callbacks 2024-03-20 20:24:44 +01:00
emit_one_shot_is_non_recursive.gd [Core] Disconnect one-shot signals before calling callbacks 2024-03-20 20:24:44 +01:00
emit_one_shot_is_non_recursive.out [Core] Disconnect one-shot signals before calling callbacks 2024-03-20 20:24:44 +01:00
export_group_no_name_conflict_with_properties.gd GDScript: Add @export_storage annotation 2023-12-19 20:56:30 +03:00
export_group_no_name_conflict_with_properties.out GDScript: Add @export_storage annotation 2023-12-19 20:56:30 +03:00
first_class_callable_and_signal.gd GDScript: Fix regression with native signal not found 2023-08-02 15:42:36 +03:00
first_class_callable_and_signal.out GDScript: Fix regression with native signal not found 2023-08-02 15:42:36 +03:00
for_loop_iterator_specified_types.gd GDScript: Make array literal typed if for loop variable type is specified 2023-09-21 11:25:59 +03:00
for_loop_iterator_specified_types.out GDScript: Make array literal typed if for loop variable type is specified 2023-09-21 11:25:59 +03:00
for_loop_iterator_types.gd
for_loop_iterator_types.out
free_is_callable.gd Allow free() to be used as Callable 2024-01-18 09:33:44 -03:00
free_is_callable.out Allow free() to be used as Callable 2024-01-18 09:33:44 -03:00
gdscript.gd
gdscript.out
getter_with_freed_object.gd GDScript: Don't fail when freed object is return 2023-04-26 10:57:22 -03:00
getter_with_freed_object.out GDScript: Don't fail when freed object is return 2023-04-26 10:57:22 -03:00
lambda_use_self.gd
lambda_use_self.out
lua_assign.gd Fix LUA-style assignment in Dictionary 2021-10-05 12:17:13 +02:00
lua_assign.out
match_test_null.gd set has_type false if it is BUILTIN but Variant::NIL 2024-02-11 13:47:12 +00:00
match_test_null.out set has_type false if it is BUILTIN but Variant::NIL 2024-02-11 13:47:12 +00:00
match_with_pattern_guards.gd GDScript: Implement pattern guards for match statement 2023-09-27 11:25:25 -03:00
match_with_pattern_guards.out GDScript: Implement pattern guards for match statement 2023-09-27 11:25:25 -03:00
member_info.gd GDScript: Fix @warning_ignore annotation issues 2024-03-12 19:00:06 +03:00
member_info.out GDScript: Add @export_storage annotation 2023-12-19 20:56:30 +03:00
member_info_inheritance.gd GDScript: Fix @warning_ignore annotation issues 2024-03-12 19:00:06 +03:00
member_info_inheritance.out GDScript: Fix duplication of inherited script properties 2023-09-23 15:30:23 +03:00
metatypes.gd GDScript: Fix some lambda bugs 2023-09-14 14:22:23 +03:00
metatypes.notest.gd GDScript: Fix some lambda bugs 2023-09-14 14:22:23 +03:00
metatypes.out GDScript: Fix some lambda bugs 2023-09-14 14:22:23 +03:00
object_constructor.gd GDScript: Improve call analysis 2023-09-21 13:36:39 +03:00
object_constructor.out GDScript: Improve call analysis 2023-09-21 13:36:39 +03:00
parameter_shadowing.gd Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
parameter_shadowing.out
params_default_values.gd GDScript: Fix parsing default parameter values from function calls 2022-01-13 19:28:39 -05:00
params_default_values.out GDScript: Fix parsing default parameter values from function calls 2022-01-13 19:28:39 -05:00
property_with_operator_assignment.gd Fix GDScript code style regarding colon 2023-03-05 17:03:20 +03:00
property_with_operator_assignment.out
range_optimized_in_for_has_int_iterator.gd
range_optimized_in_for_has_int_iterator.out
range_returns_ints.gd
range_returns_ints.out
recursion.gd Add more integration tests to the GDScript test suite 2021-09-15 19:57:39 +02:00
recursion.out
reset_local_var_on_exit_block.gd [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
reset_local_var_on_exit_block.out [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
reset_unassigned_variables_in_loops.gd GDScript: Don't warn on unassigned for builtin-typed variables 2024-04-10 11:59:57 -03:00
reset_unassigned_variables_in_loops.out GDScript: Reset local variables on exit from block 2023-06-02 13:20:19 +03:00
standalone_calls_do_not_write_to_nil.gd [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
standalone_calls_do_not_write_to_nil.out [GDScript] Fix some test file paths 2024-03-04 19:11:28 +01:00
static_access_via_instance.gd GDScript: Fix some bugs with static variables and functions 2023-06-16 22:52:11 +03:00
static_access_via_instance.out GDScript: Fix some bugs with static variables and functions 2023-06-16 22:52:11 +03:00
static_constructor.gd Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
static_constructor.out Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
static_func_as_callable.gd GDScript: Fix some bugs with static variables and functions 2023-06-16 22:52:11 +03:00
static_func_as_callable.out GDScript: Fix some bugs with static variables and functions 2023-06-16 22:52:11 +03:00
static_method_as_callable.gd GDScript: Fix accessing static function as Callable in static context 2023-12-12 22:19:39 +03:00
static_method_as_callable.out GDScript: Fix accessing static function as Callable in static context 2023-12-12 22:19:39 +03:00
static_variables.gd GDScript: Improve call analysis 2023-09-21 13:36:39 +03:00
static_variables.out GDScript: Fix some bugs with static variables and functions 2023-06-16 22:52:11 +03:00
static_variables_2.gd GDScript: Fix some bugs with static variables and functions 2023-06-16 22:52:11 +03:00
static_variables_2.out GDScript: Fix some bugs with static variables and functions 2023-06-16 22:52:11 +03:00
static_variables_load.gd Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
static_variables_load.out Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
static_variables_other.gd Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
static_variables_other.out Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
string_stringname_equivalent.gd GDScript: Strings and StringNames match 2023-06-14 19:24:28 -07:00
string_stringname_equivalent.out GDScript: Strings and StringNames match 2023-06-14 19:24:28 -07:00
stringify.gd GDScript: Fix UNSAFE_CALL_ARGUMENT warning for Variant constructors 2023-09-30 13:57:09 +03:00
stringify.out
typed_argument_is_null.gd Fix: Func with typed args error when arg is null 2023-02-19 21:47:48 -05:00
typed_argument_is_null.out Fix: Func with typed args error when arg is null 2023-02-19 21:47:48 -05:00
typed_array_concatenation.gd Fix: Typed arrays aren't working with + 2023-02-22 18:42:26 -05:00
typed_array_concatenation.out Fix: Typed arrays aren't working with + 2023-02-22 18:42:26 -05:00
typed_array_init_with_untyped_in_literal.gd GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_init_with_untyped_in_literal.out GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_assignment.gd
typed_assignment.out
use_conversion_assign_with_variant_value.gd Fix GDScript code style regarding colon 2023-03-05 17:03:20 +03:00
use_conversion_assign_with_variant_value.out
utility_func_as_callable.gd GDScript: Allow utility functions to be used as Callable 2024-01-05 21:16:53 +03:00
utility_func_as_callable.out GDScript: Allow utility functions to be used as Callable 2024-01-05 21:16:53 +03:00