@@ -61,3 +61,27 @@ longer explanation available when compiling with `-explain`
616138 | @nowarn("msg=fish") // error (unused nowarn)
6262 | ^^^^^^^^^^^^^^^^^^^
6363 | @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)
66+ |^^^^^^^
67+ |@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)
70+ | ^^^^^^^
71+ | @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)
74+ |^^^^^^^
75+ |@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
78+ | ^^^^^^^
79+ | @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)
82+ |^^^^^^^
83+ |@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)
86+ |^^^^^^^
87+ |@nowarn annotation does not suppress any warnings
0 commit comments