File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
library/src/scala/annotation Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,21 @@ package scala.annotation
1414
1515/** An annotation for local warning suppression.
1616 *
17- * The optional `value` parameter allows selectively silencing messages, see `scalac -Wconf:help`
18- * for help. Examples:
17+ * The optional `value` parameter allows selectively silencing messages. See `-Wconf:help` for help
18+ * writing a message filter expression, or use `@nowarn("verbose")` / `@nowarn("v")` to display message
19+ * filters applicable to a specific warning.
20+ *
21+ * Examples:
1922 *
2023 * {{{
2124 * def f = {
2225 * 1: @nowarn // don't warn "a pure expression does nothing in statement position"
2326 * 2
2427 * }
2528 *
29+ * // show the warning, plus the applicable @nowarn / Wconf filters ("cat=other-pure-statement", ...)
30+ * @nowarn("v") def f = { 1; 2 }
31+ *
2632 * @nowarn def f = { 1; deprecated() } // don't warn
2733 *
2834 * @nowarn("msg=pure expression does nothing")
You can’t perform that action at this time.
0 commit comments