virtualx-engine/modules/gdscript/tests/scripts/parser/warnings
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
..
assert_always_true.gd
assert_always_true.out
confusable_identifier.gd GDScript: Be more lenient with identifiers 2023-02-09 11:19:05 -03:00
confusable_identifier.out GDScript: Be more lenient with identifiers 2023-02-09 11:19:05 -03:00
deprecated_operators.gd
deprecated_operators.out
empty_file.notest.gd
empty_file.notest.out
empty_file_comment.notest.gd
empty_file_comment.notest.out
empty_file_newline.notest.gd
empty_file_newline.notest.out
empty_file_newline_comment.notest.gd
empty_file_newline_comment.notest.out
enum_assign_int_without_casting.gd
enum_assign_int_without_casting.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
incompatible_ternary.gd
incompatible_ternary.out GDScript: Fix @warning_ignore annotation issues 2024-03-12 19:00:06 +03:00
integer_division.gd
integer_division.out
match_default_not_at_end.gd
match_default_not_at_end.out
narrowing_conversion.gd
narrowing_conversion.out
return_value_discarded.gd
return_value_discarded.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
shadowed_constant.gd
shadowed_constant.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
shadowed_global_identifier.gd
shadowed_global_identifier.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
shadowed_variable_class.gd
shadowed_variable_class.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
shadowed_variable_function.gd
shadowed_variable_function.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
standalone_expression.gd GDScript: Allow strings as multiline comments 2023-02-09 10:16:00 -03:00
standalone_expression.out GDScript: Allow strings as multiline comments 2023-02-09 10:16:00 -03:00
standalone_ternary.gd GDScript: Fix @warning_ignore annotation issues 2024-03-12 19:00:06 +03:00
standalone_ternary.out GDScript: Fix @warning_ignore annotation issues 2024-03-12 19:00:06 +03:00
static_called_on_instance.gd GDScript: Adjust STATIC_CALLED_ON_INSTANCE warning to not default to the native type, and to not trigger on self-calls 2024-03-01 17:14:59 +03:00
static_called_on_instance.out GDScript: Adjust STATIC_CALLED_ON_INSTANCE warning to not default to the native type, and to not trigger on self-calls 2024-03-01 17:14:59 +03:00
unassigned_variable.gd GDScript: Don't warn on unassigned for builtin-typed variables 2024-04-10 11:59:57 -03:00
unassigned_variable.out GDScript: Don't warn on unassigned for builtin-typed variables 2024-04-10 11:59:57 -03:00
unassigned_variable_op_assign.gd
unassigned_variable_op_assign.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
unreachable_code_after_return.gd
unreachable_code_after_return.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
unreachable_code_after_return_bug_55154.gd
unreachable_code_after_return_bug_55154.out
unused_argument.gd
unused_argument.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
unused_variable.gd
unused_variable.out GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00