You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproducible in latest master as of writing 4e5ed0b
Reproducible in 4.3 beta 1.
Reproducible in 4.3 dev 6.
Does not occur in 4.3 dev 5.
Does not occur in 4.3 dev 3.
Does not occur in Godot 4.2 stable.
System information
macOS 14.5
Issue description
Line (ENUM_VARIABLE_WITHOUT_DEFAULT):
The variable "test" has an enum type and does not set an explicit default value. The default will be set to "0".
This error message shows up when using an enum in a function parameter. However, this warning is incorrect. The variable test is in fact not an ordinary variable, it is a parameter. And parameters do not have implicit default values. Values are either required (in which case it's provided by the caller) or optional (which have explicit default values).
Tested versions
System information
macOS 14.5
Issue description
This error message shows up when using an enum in a function parameter. However, this warning is incorrect. The variable
test
is in fact not an ordinary variable, it is a parameter. And parameters do not have implicit default values. Values are either required (in which case it's provided by the caller) or optional (which have explicit default values).Steps to reproduce
Put this code in a GDScript file:
Minimal reproduction project (MRP)
enum-parameter-default-bug.zip
The text was updated successfully, but these errors were encountered: