Use annotation to enable -explain
locally, similar to @nowarn("verbose")
#22413
lrytz
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Adding an annotation is a lot more convenient than changing the build to add a compiler flag.
Scala 3 supports
@nowarn("verbose")
to display applicable message filters ("Matching filters..." section):(the formatting is off, I created a ticket for that #22412)
It would be practical if
-explain
could be enabled in the same way, not only for warnings but also for errors.Reusing
@nowarn("v")
would be trivial, but maybe a different annotation is desired?https://github.com/scala/scala3/compare/main...lrytz:scala3:nowarnExplain?expand=1
Beta Was this translation helpful? Give feedback.
All reactions