Greetings Ales,
Thank you very much for reporting this bug. I will look into this further.
My first intuition is that annotations on enum values are declaration
annotations, not type annotation, as they don't really target a type,
and treating it as such would require an additional check that the
annotated type of the enum value is a subtype of the enum type.
Thanks again.
Regards,
Mahmood