We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fe19a8 commit d196c6cCopy full SHA for d196c6c
library/src/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