5
5
| its body in a block; no exceptions are handled.
6
6
7
7
longer 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)
10
10
| ^^^^^
11
11
| A try without catch or finally is equivalent to putting
12
12
| its body in a block; no exceptions are handled.
13
13
14
14
longer 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
17
17
| ^^^^^
18
18
| A try without catch or finally is equivalent to putting
19
19
| its body in a block; no exceptions are handled.
@@ -33,55 +33,65 @@ longer explanation available when compiling with `-explain`
33
33
| ^^^^^^
34
34
| Invalid message filter
35
35
| 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)
38
48
| ^
39
49
| 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)
42
52
| ^
43
53
| 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)
46
56
| ^
47
57
| 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)
50
60
| ^
51
61
| 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)
54
64
|^^^^^^^^^^^^^^^
55
65
|@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)
58
68
|^^^^^^^^^^^^^^^^^^^
59
69
|@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)
62
72
| ^^^^^^^^^^^^^^^^^^^
63
73
| @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)
66
76
|^^^^^^^
67
77
|@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)
70
80
| ^^^^^^^
71
81
| @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)
74
84
|^^^^^^^
75
85
|@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
78
88
| ^^^^^^^
79
89
| @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)
82
92
|^^^^^^^
83
93
|@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)
86
96
|^^^^^^^
87
97
|@nowarn annotation does not suppress any warnings
0 commit comments