virtualx-engine/modules/gdscript/tests/scripts/runtime
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
..
errors Merge pull request #82639 from golfinq/gdscript-improve-indexing-error 2024-01-04 16:38:58 +01:00
features GDScript: Don't warn on unassigned for builtin-typed variables 2024-04-10 11:59:57 -03:00
assign_to_read_only_property.gd GDScript: Improve usability of setter chains 2023-02-02 10:20:35 -03:00
assign_to_read_only_property.out GDScript: Improve usability of setter chains 2023-02-02 10:20:35 -03:00
assign_to_read_only_property_with_variable_index.gd GDScript: Improve usability of setter chains 2023-02-02 10:20:35 -03:00
assign_to_read_only_property_with_variable_index.out GDScript: Improve usability of setter chains 2023-02-02 10:20:35 -03:00