-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"Error: The macro can only be applied to enums or enum values." - What interface to use instead? #56305
Comments
Summary: The user is attempting to apply a macro to a class that resembles an enum, but the macro only supports enums. They are seeking an alternative interface to use for their macro. |
cc @jakemac53 |
That just looks like a bug |
Looks like this is an error produced by the CFE so that is probably where the issue is. There is test coverage for the shared code for this use case so it should generally work. |
@jakemac53 anything I can do to help? |
The repro you provided is already great, that is probably all we need to investigate (and thanks for that!) |
Is there any update on this issue? |
No meaningful updates, and it will still be quite some time before the underlying support needed for reading annotations is there. Although, this package does support any type with a |
The message from the title is occuring when trying to apply below macro to this declaration, which looks a lot like an enum to my naive eyes:
The text was updated successfully, but these errors were encountered: