We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0233cac commit 88ac5e4Copy full SHA for 88ac5e4
src/library/scala/annotation/nowarn.scala
@@ -29,7 +29,7 @@ package scala.annotation
29
* def f = { 1; deprecated() } // show deprecation warning
30
* }}}
31
*
32
- * To ensure that a `@nowarn` annotation actually suppresses a warning, enable `-Xlint:nowarn`.
+ * To ensure that a `@nowarn` annotation actually suppresses a warning, enable `-Xlint:unused` or `-Wunused:nowarn`.
33
*/
34
@nowarn("msg=subclassing ClassfileAnnotation does not\nmake your annotation visible at runtime")
35
class nowarn(value: String = "") extends ClassfileAnnotation
0 commit comments