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

Assist to turn discriminants of enums explicit #17798

Closed
Veykril opened this issue Aug 5, 2024 · 0 comments · Fixed by #17985
Closed

Assist to turn discriminants of enums explicit #17798

Veykril opened this issue Aug 5, 2024 · 0 comments · Fixed by #17985
Labels
A-assists C-feature Category: feature request

Comments

@Veykril
Copy link
Member

Veykril commented Aug 5, 2024

That is

enum Foo {
    V,
    V2,
    V3 = 10,
    V4,
}

becomes

enum Foo {
    V = 0,
    V2 = 1,
    V3 = 10,
    V4 = 11,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-feature Category: feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant