55 | its body in a block; no exceptions are handled.
66
77longer explanation available when compiling with `-explain`
8- -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:21 :26 ----------------------------------------------
9- 21 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
8+ -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:24 :26 ----------------------------------------------
9+ 24 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
1010 | ^^^^^
1111 | A try without catch or finally is equivalent to putting
1212 | its body in a block; no exceptions are handled.
1313
1414longer explanation available when compiling with `-explain`
15- -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:23 :28 ----------------------------------------------
16- 23 |@nowarn("verbose") def t5 = try 1 // warning with details
15+ -- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:26 :28 ----------------------------------------------
16+ 26 |@nowarn("verbose") def t5 = try 1 // warning with details
1717 | ^^^^^
1818 | A try without catch or finally is equivalent to putting
1919 | its body in a block; no exceptions are handled.
@@ -33,55 +33,65 @@ longer explanation available when compiling with `-explain`
3333 | ^^^^^^
3434 | Invalid message filter
3535 | unknown filter: wat?
36- -- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:27:10 ------------------------------------------------
37- 27 |def t6a = f // warning (refchecks, deprecation)
36+ -- [E129] Potential Issue Warning: tests/neg-custom-args/nowarn/nowarn.scala:16:12 -------------------------------------
37+ 16 |def t2a = { 1; 2 } // warning (invalid nowarn doesn't silence)
38+ | ^
39+ | A pure expression does nothing in statement position; you may be omitting necessary parentheses
40+
41+ longer explanation available when compiling with `-explain`
42+ -- Warning: tests/neg-custom-args/nowarn/nowarn.scala:15:8 -------------------------------------------------------------
43+ 15 |@nowarn(t1a.toString) // warning (typer, argument not a compile-time constant)
44+ | ^^^^^^^^^^^^
45+ | filter needs to be a compile-time constant string
46+ -- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:30:10 ------------------------------------------------
47+ 30 |def t6a = f // warning (refchecks, deprecation)
3848 | ^
3949 | method f is deprecated
40- -- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:30 :30 ------------------------------------------------
41- 30 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
50+ -- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:33 :30 ------------------------------------------------
51+ 33 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
4252 | ^
4353 | method f is deprecated
44- -- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:37 :10 ------------------------------------------------
45- 37 |def t7c = f: // warning (deprecation)
54+ -- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:40 :10 ------------------------------------------------
55+ 40 |def t7c = f: // warning (deprecation)
4656 | ^
4757 | method f is deprecated
48- -- Unchecked Warning: tests/neg-custom-args/nowarn/nowarn.scala:43 :7 ---------------------------------------------------
49- 43 | case _: List[Int] => 0 // warning (patmat, unchecked)
58+ -- Unchecked Warning: tests/neg-custom-args/nowarn/nowarn.scala:46 :7 ---------------------------------------------------
59+ 46 | case _: List[Int] => 0 // warning (patmat, unchecked)
5060 | ^
5161 | the type test for List[Int] cannot be checked at runtime
52- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:21 :1 ---------------------------------------------------------------
53- 21 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
62+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:24 :1 ---------------------------------------------------------------
63+ 24 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
5464 |^^^^^^^^^^^^^^^
5565 |@nowarn annotation does not suppress any warnings
56- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:30 :1 ---------------------------------------------------------------
57- 30 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
66+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:33 :1 ---------------------------------------------------------------
67+ 33 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
5868 |^^^^^^^^^^^^^^^^^^^
5969 |@nowarn annotation does not suppress any warnings
60- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:38 :3 ---------------------------------------------------------------
61- 38 | @nowarn("msg=fish") // error (unused nowarn)
70+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:41 :3 ---------------------------------------------------------------
71+ 41 | @nowarn("msg=fish") // error (unused nowarn)
6272 | ^^^^^^^^^^^^^^^^^^^
6373 | @nowarn annotation does not suppress any warnings
64- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:50 :0 ---------------------------------------------------------------
65- 50 |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused)
74+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:53 :0 ---------------------------------------------------------------
75+ 53 |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused)
6676 |^^^^^^^
6777 |@nowarn annotation does not suppress any warnings
68- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:51 :27 --------------------------------------------------------------
69- 51 |@nowarn def t9b = { 1: Int @nowarn; 2 } // error (inner @nowarn is unused, it covers the type, not the expression)
78+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:54 :27 --------------------------------------------------------------
79+ 54 |@nowarn def t9b = { 1: Int @nowarn; 2 } // error (inner @nowarn is unused, it covers the type, not the expression)
7080 | ^^^^^^^
7181 | @nowarn annotation does not suppress any warnings
72- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:56 :0 ---------------------------------------------------------------
73- 56 |@nowarn @ann(f) def t10b = 0 // error (unused nowarn)
82+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:59 :0 ---------------------------------------------------------------
83+ 59 |@nowarn @ann(f) def t10b = 0 // error (unused nowarn)
7484 |^^^^^^^
7585 |@nowarn annotation does not suppress any warnings
76- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:57 :8 ---------------------------------------------------------------
77- 57 |@ann(f: @nowarn) def t10c = 0 // error (unused nowarn), should be silent
86+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:60 :8 ---------------------------------------------------------------
87+ 60 |@ann(f: @nowarn) def t10c = 0 // error (unused nowarn), should be silent
7888 | ^^^^^^^
7989 | @nowarn annotation does not suppress any warnings
80- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:60 :0 ---------------------------------------------------------------
81- 60 |@nowarn class I1a { // error (unused nowarn)
90+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:63 :0 ---------------------------------------------------------------
91+ 63 |@nowarn class I1a { // error (unused nowarn)
8292 |^^^^^^^
8393 |@nowarn annotation does not suppress any warnings
84- -- Error: tests/neg-custom-args/nowarn/nowarn.scala:65 :0 ---------------------------------------------------------------
85- 65 |@nowarn class I1b { // error (unused nowarn)
94+ -- Error: tests/neg-custom-args/nowarn/nowarn.scala:68 :0 ---------------------------------------------------------------
95+ 68 |@nowarn class I1b { // error (unused nowarn)
8696 |^^^^^^^
8797 |@nowarn annotation does not suppress any warnings
0 commit comments