-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Ordinary annotation #23565
som-snytt
started this conversation in
Feature Requests
Ordinary annotation
#23565
-
Instead of
@nowarn("id=E219")
I would like to write
@nowarn("id=E" + DefaultShadowsGivenID)
or actually
@nowarn(s"id=E${DefaultShadowsGivenID.compileTimeOrdinal}")
or better
@nowarn(s"id=${DefaultShadowsGivenID.errorID}")
This may require an annotation for the enum, that it is monotonic and scalac will refuse to compile incrementally if that condition is not met.
@monotonic
enum Foo
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment