Skip to content

Commit 8f04f7d

Browse files
authored
Merge pull request scala/scala#8293 from som-snytt/issue/warn-parenthetically
Extend `-Xlint:nullary-override` for the reverse (nilary) case
2 parents f0866d5 + fa53d28 commit 8f04f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/annotation/nowarn.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ package scala.annotation
2929
* def f = { 1; deprecated() } // show deprecation warning
3030
* }}}
3131
*
32-
* To ensure that a `@nowarn` annotation actually suppresses a warning, enable `-Xlint:nowarn`.
32+
* To ensure that a `@nowarn` annotation actually suppresses a warning, enable `-Xlint:unused` or `-Wunused:nowarn`.
3333
*/
3434
class nowarn(value: String = "") extends ConstantAnnotation

0 commit comments

Comments
 (0)