Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ordinary annotation #23565

som-snytt started this conversation in Feature Requests
Discussion options

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
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /