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
14
14
15
15
/** An annotation for local warning suppression.
16
16
*
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:
19
22
*
20
23
* {{{
21
24
* def f = {
22
25
* 1: @nowarn // don't warn "a pure expression does nothing in statement position"
23
26
* 2
24
27
* }
25
28
*
29
+ * // show the warning, plus the applicable @nowarn / Wconf filters ("cat=other-pure-statement", ...)
30
+ * @nowarn("v") def f = { 1; 2 }
31
+ *
26
32
* @nowarn def f = { 1; deprecated() } // don't warn
27
33
*
28
34
* @nowarn("msg=pure expression does nothing")
You can’t perform that action at this time.
0 commit comments