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

[Bug]: @defaultVisibility decorator does not recognize member of class enum #5461

Open
4 tasks done
kolaworld opened this issue Dec 29, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working needs-area

Comments

@kolaworld
Copy link

Describe the bug

The below code, pulled directly from docs, always errors with:

error default-visibility-not-member The default visibility modifiers of a class must be members of the class enum.

@defaultVisibility(Example.A)
enum Example {
  A,
  B,
}

Reproduction

See error in playground

Checklist

@kolaworld kolaworld added the bug Something isn't working label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-area
Projects
None yet
Development

No branches or pull requests

1 participant