-
Notifications
You must be signed in to change notification settings - Fork 33
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
Compilation should fail when @silent
does not suppress anything
#28
Comments
That's an interesting idea. I don't think we can make what you propose the default behavior - it could break existing projects. However, we might hide it behind a flag. |
fwiw, breaking existing projects seems okay to me here. the existing projects are likely to want to remove those stale annotations |
@SethTisue what is the last compiler phase that can emit warnings? |
even the |
IMO, another reason to not enable this checking by default is that it may be problematic in cross-compiled projects where e.g. Scala 2.12 emits a warning but Scala 2.11 doesn't. |
Fixed in 1.4.0 |
Currently it seems like
@silent
can be added anywhere, even if it's not needed. This is particularly bothersome when it's applied to classes; a code change could fix the initial warning that's being ignored, but leave@silent
in place, opening up accidental regression on further code changes.The text was updated successfully, but these errors were encountered: