virtualx-engine/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 Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
array_string_stringname_equivalent.out Unify String and StringName 2022-12-05 21:46:47 -05:00
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 GDScript: Allow constant expressions in annotations 2023-01-25 18:43:56 +03:00
await_on_void.out GDScript: Allow using await on calls to void functions 2023-01-09 09:55:05 -03:00
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 Fix set chain bug with jump_if_shared 2022-06-28 18:45:27 +03:00
chain_assignment_works.out Improve dictionary printing to avoid confusion with arrays 2022-10-04 20:33:40 +02:00
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 GDScript: Fix missing conversion for default argument values 2023-01-06 11:49:06 +02:00
conversion_for_default_parameter.out GDScript: Fix missing conversion for default argument values 2023-01-06 11:49:06 +02:00
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 Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
dictionary_string_stringname_equivalent.out Unify String and StringName 2022-12-05 21:46:47 -05:00
does_not_override_temp_values.gd GDScript: Allow constant expressions in annotations 2023-01-25 18:43:56 +03:00
does_not_override_temp_values.out GDScript: Fix temp values being written without proper clear 2023-01-11 14:24:23 -03:00
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 GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_iterator_types.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
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: Allow constant expressions in annotations 2023-01-25 18:43:56 +03:00
gdscript.out Add default virtual gdscript:// path to GDScript instances 2023-01-12 10:27:38 -05:00
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 GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
lambda_use_self.out GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
lua_assign.gd
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 Fix incomplete shadowing of member properties by parameters 2022-12-06 00:22:56 +02:00
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 GDScript Fix type mismatch in optimized single arg range 2022-11-02 13:20:47 +01:00
range_optimized_in_for_has_int_iterator.out GDScript Fix type mismatch in optimized single arg range 2022-11-02 13:20:47 +01:00
range_returns_ints.gd GDScript Fix type mismatch in optimized single arg range 2022-11-02 13:20:47 +01:00
range_returns_ints.out GDScript Fix type mismatch in optimized single arg range 2022-11-02 13:20:47 +01:00
recursion.gd
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 Improve dictionary printing to avoid confusion with arrays 2022-10-04 20:33:40 +02:00
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 Fix type adjustment skipped when value is considered both not hard and not variant 2022-12-25 17:11:30 +03:00
typed_assignment.out Fix type adjustment skipped when value is considered both not hard and not variant 2022-12-25 17:11:30 +03:00
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 GDScript: Fix use of conversion assign for variant values 2023-01-10 20:01:11 -03:00
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