55 | its body in a block; no exceptions are handled.
66 |
77 | longer explanation available when compiling with `-explain`
8- -- [E002] Syntax Warning: tests/neg/nowarn.scala:22 :25 -----------------------------------------------------------------
9- 22 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant)
8+ -- [E002] Syntax Warning: tests/neg/nowarn.scala:25 :25 -----------------------------------------------------------------
9+ 25 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant)
1010 | ^^^^^
1111 | A try without catch or finally is equivalent to putting
1212 | its body in a block; no exceptions are handled.
1313 |
1414 | longer explanation available when compiling with `-explain`
15- -- [E002] Syntax Warning: tests/neg/nowarn.scala:30 :26 -----------------------------------------------------------------
16- 30 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
15+ -- [E002] Syntax Warning: tests/neg/nowarn.scala:33 :26 -----------------------------------------------------------------
16+ 33 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
1717 | ^^^^^
1818 | A try without catch or finally is equivalent to putting
1919 | its body in a block; no exceptions are handled.
2020 |
2121 | longer explanation available when compiling with `-explain`
22- -- [E002] Syntax Warning: tests/neg/nowarn.scala:32 :28 -----------------------------------------------------------------
23- 32 |@nowarn("verbose") def t5 = try 1 // warning with details
22+ -- [E002] Syntax Warning: tests/neg/nowarn.scala:35 :28 -----------------------------------------------------------------
23+ 35 |@nowarn("verbose") def t5 = try 1 // warning with details
2424 | ^^^^^
2525 | A try without catch or finally is equivalent to putting
2626 | its body in a block; no exceptions are handled.
@@ -40,61 +40,71 @@ Matching filters for @nowarn or -Wconf:
4040 | ^^^^^^
4141 | Invalid message filter
4242 | unknown filter: wat?
43- -- Warning: tests/neg/nowarn.scala:22:10 -------------------------------------------------------------------------------
44- 22 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant)
43+ -- [E129] Potential Issue Warning: tests/neg/nowarn.scala:18:12 --------------------------------------------------------
44+ 18 |def t2a = { 1; 2 } // warning (invalid nowarn doesn't silence)
45+ | ^
46+ | A pure expression does nothing in statement position
47+ |
48+ | longer explanation available when compiling with `-explain`
49+ -- Warning: tests/neg/nowarn.scala:17:8 --------------------------------------------------------------------------------
50+ 17 |@nowarn(t1a.toString) // warning (typer, argument not a compile-time constant)
51+ | ^^^^^^^^^^^^
52+ | filter needs to be a compile-time constant string
53+ -- Warning: tests/neg/nowarn.scala:25:10 -------------------------------------------------------------------------------
54+ 25 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant)
4555 | ^^^^^
4656 | filter needs to be a compile-time constant string
47- -- Deprecation Warning: tests/neg/nowarn.scala:36 :10 -------------------------------------------------------------------
48- 36 |def t6a = f // warning (refchecks, deprecation)
57+ -- Deprecation Warning: tests/neg/nowarn.scala:39 :10 -------------------------------------------------------------------
58+ 39 |def t6a = f // warning (refchecks, deprecation)
4959 | ^
5060 | method f is deprecated
51- -- Deprecation Warning: tests/neg/nowarn.scala:39 :30 -------------------------------------------------------------------
52- 39 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
61+ -- Deprecation Warning: tests/neg/nowarn.scala:42 :30 -------------------------------------------------------------------
62+ 42 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
5363 | ^
5464 | method f is deprecated
55- -- Deprecation Warning: tests/neg/nowarn.scala:46 :10 -------------------------------------------------------------------
56- 46 |def t7c = f // warning (deprecation)
65+ -- Deprecation Warning: tests/neg/nowarn.scala:49 :10 -------------------------------------------------------------------
66+ 49 |def t7c = f // warning (deprecation)
5767 | ^
5868 | method f is deprecated
59- -- [E092] Pattern Match Unchecked Warning: tests/neg/nowarn.scala:52 :7 -------------------------------------------------
60- 52 | case _: List[Int] => 0 // warning (patmat, unchecked)
69+ -- [E092] Pattern Match Unchecked Warning: tests/neg/nowarn.scala:55 :7 -------------------------------------------------
70+ 55 | case _: List[Int] => 0 // warning (patmat, unchecked)
6171 | ^
6272 |the type test for List[Int] cannot be checked at runtime because its type arguments can't be determined from Any
6373 |
6474 | longer explanation available when compiling with `-explain`
65- -- Error: tests/neg/nowarn.scala:30 :1 ----------------------------------------------------------------------------------
66- 30 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
75+ -- Error: tests/neg/nowarn.scala:33 :1 ----------------------------------------------------------------------------------
76+ 33 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
6777 |^^^^^^^^^^^^^^^
6878 |@nowarn annotation does not suppress any warnings
69- -- Error: tests/neg/nowarn.scala:39 :1 ----------------------------------------------------------------------------------
70- 39 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
79+ -- Error: tests/neg/nowarn.scala:42 :1 ----------------------------------------------------------------------------------
80+ 42 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
7181 |^^^^^^^^^^^^^^^^^^^
7282 |@nowarn annotation does not suppress any warnings
73- -- Error: tests/neg/nowarn.scala:47 :5 ----------------------------------------------------------------------------------
74- 47 | : @nowarn("msg=fish") // error (unused nowarn)
83+ -- Error: tests/neg/nowarn.scala:50 :5 ----------------------------------------------------------------------------------
84+ 50 | : @nowarn("msg=fish") // error (unused nowarn)
7585 | ^^^^^^^^^^^^^^^^^^^
7686 | @nowarn annotation does not suppress any warnings
77- -- Error: tests/neg/nowarn.scala:59 :0 ----------------------------------------------------------------------------------
78- 59 |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused)
87+ -- Error: tests/neg/nowarn.scala:62 :0 ----------------------------------------------------------------------------------
88+ 62 |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused)
7989 |^^^^^^^
8090 |@nowarn annotation does not suppress any warnings
81- -- Error: tests/neg/nowarn.scala:60 :27 ---------------------------------------------------------------------------------
82- 60 |@nowarn def t9b = { 1: Int @nowarn; 2 } // error (inner @nowarn is unused, it covers the type, not the expression)
91+ -- Error: tests/neg/nowarn.scala:63 :27 ---------------------------------------------------------------------------------
92+ 63 |@nowarn def t9b = { 1: Int @nowarn; 2 } // error (inner @nowarn is unused, it covers the type, not the expression)
8393 | ^^^^^^^
8494 | @nowarn annotation does not suppress any warnings
85- -- Error: tests/neg/nowarn.scala:65 :0 ----------------------------------------------------------------------------------
86- 65 |@nowarn @ann(f) def t10b = 0 // error (unused nowarn)
95+ -- Error: tests/neg/nowarn.scala:68 :0 ----------------------------------------------------------------------------------
96+ 68 |@nowarn @ann(f) def t10b = 0 // error (unused nowarn)
8797 |^^^^^^^
8898 |@nowarn annotation does not suppress any warnings
89- -- Error: tests/neg/nowarn.scala:66 :8 ----------------------------------------------------------------------------------
90- 66 |@ann(f: @nowarn) def t10c = 0 // error (unused nowarn), should be silent
99+ -- Error: tests/neg/nowarn.scala:69 :8 ----------------------------------------------------------------------------------
100+ 69 |@ann(f: @nowarn) def t10c = 0 // error (unused nowarn), should be silent
91101 | ^^^^^^^
92102 | @nowarn annotation does not suppress any warnings
93- -- Error: tests/neg/nowarn.scala:69 :0 ----------------------------------------------------------------------------------
94- 69 |@nowarn class I1a { // error (unused nowarn)
103+ -- Error: tests/neg/nowarn.scala:72 :0 ----------------------------------------------------------------------------------
104+ 72 |@nowarn class I1a { // error (unused nowarn)
95105 |^^^^^^^
96106 |@nowarn annotation does not suppress any warnings
97- -- Error: tests/neg/nowarn.scala:74 :0 ----------------------------------------------------------------------------------
98- 74 |@nowarn class I1b { // error (unused nowarn)
107+ -- Error: tests/neg/nowarn.scala:77 :0 ----------------------------------------------------------------------------------
108+ 77 |@nowarn class I1b { // error (unused nowarn)
99109 |^^^^^^^
100110 |@nowarn annotation does not suppress any warnings
0 commit comments