Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDScript: Warn when enum variable has no default #90756

Merged

Conversation

vnen
Copy link
Member

@vnen vnen commented Apr 16, 2024

The default will always be set to 0, so if it's not a valid value in the enum, the warning is shown.

Solve part of #74123

The default will always be set to `0`, so if it's not a valid value in
the enum, the warning is shown.
@vnen vnen force-pushed the gdscript-warning-enum-without-default branch from 411fa8c to f9048fc Compare April 16, 2024 14:47
@vnen vnen requested a review from a team as a code owner April 16, 2024 14:47
@akien-mga akien-mga added this to the 4.3 milestone Apr 17, 2024
@akien-mga akien-mga merged commit 82b36cc into godotengine:master Apr 17, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants