|
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:24:26 ---------------------------------------------- |
9 |
| -24 |@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:23:25 ---------------------------------------------- |
| 9 | +23 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant) |
| 10 | + | ^^^^^ |
| 11 | + | A try without catch or finally is equivalent to putting |
| 12 | + | its body in a block; no exceptions are handled. |
| 13 | + |
| 14 | +longer explanation available when compiling with `-explain` |
| 15 | +-- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:31:26 ---------------------------------------------- |
| 16 | +31 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id) |
10 | 17 | | ^^^^^
|
11 | 18 | | A try without catch or finally is equivalent to putting
|
12 | 19 | | its body in a block; no exceptions are handled.
|
13 | 20 |
|
14 | 21 | longer explanation available when compiling with `-explain`
|
15 |
| --- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:26:28 ---------------------------------------------- |
16 |
| -26 |@nowarn("verbose") def t5 = try 1 // warning with details |
| 22 | +-- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:33:28 ---------------------------------------------- |
| 23 | +33 |@nowarn("verbose") def t5 = try 1 // warning with details |
17 | 24 | | ^^^^^
|
18 | 25 | | A try without catch or finally is equivalent to putting
|
19 | 26 | | its body in a block; no exceptions are handled.
|
@@ -43,55 +50,59 @@ longer explanation available when compiling with `-explain`
|
43 | 50 | 15 |@nowarn(t1a.toString) // warning (typer, argument not a compile-time constant)
|
44 | 51 | | ^^^^^^^^^^^^
|
45 | 52 | | 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) |
| 53 | +-- Warning: tests/neg-custom-args/nowarn/nowarn.scala:23:10 ------------------------------------------------------------ |
| 54 | +23 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant) |
| 55 | + | ^^^^^ |
| 56 | + | filter needs to be a compile-time constant string |
| 57 | +-- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:37:10 ------------------------------------------------ |
| 58 | +37 |def t6a = f // warning (refchecks, deprecation) |
48 | 59 | | ^
|
49 | 60 | | method f is deprecated
|
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) |
| 61 | +-- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:40:30 ------------------------------------------------ |
| 62 | +40 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation) |
52 | 63 | | ^
|
53 | 64 | | method f is deprecated
|
54 |
| --- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:40:10 ------------------------------------------------ |
55 |
| -40 |def t7c = f: // warning (deprecation) |
| 65 | +-- Deprecation Warning: tests/neg-custom-args/nowarn/nowarn.scala:47:10 ------------------------------------------------ |
| 66 | +47 |def t7c = f: // warning (deprecation) |
56 | 67 | | ^
|
57 | 68 | | method f is deprecated
|
58 |
| --- Unchecked Warning: tests/neg-custom-args/nowarn/nowarn.scala:46:7 --------------------------------------------------- |
59 |
| -46 | case _: List[Int] => 0 // warning (patmat, unchecked) |
| 69 | +-- Unchecked Warning: tests/neg-custom-args/nowarn/nowarn.scala:53:7 --------------------------------------------------- |
| 70 | +53 | case _: List[Int] => 0 // warning (patmat, unchecked) |
60 | 71 | | ^
|
61 | 72 | | the type test for List[Int] cannot be checked at runtime
|
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) |
| 73 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:31:1 --------------------------------------------------------------- |
| 74 | +31 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id) |
64 | 75 | |^^^^^^^^^^^^^^^
|
65 | 76 | |@nowarn annotation does not suppress any warnings
|
66 |
| --- Error: tests/neg-custom-args/nowarn/nowarn.scala:33:1 --------------------------------------------------------------- |
67 |
| -33 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation) |
| 77 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:40:1 --------------------------------------------------------------- |
| 78 | +40 |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation) |
68 | 79 | |^^^^^^^^^^^^^^^^^^^
|
69 | 80 | |@nowarn annotation does not suppress any warnings
|
70 |
| --- Error: tests/neg-custom-args/nowarn/nowarn.scala:41:3 --------------------------------------------------------------- |
71 |
| -41 | @nowarn("msg=fish") // error (unused nowarn) |
| 81 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:48:3 --------------------------------------------------------------- |
| 82 | +48 | @nowarn("msg=fish") // error (unused nowarn) |
72 | 83 | | ^^^^^^^^^^^^^^^^^^^
|
73 | 84 | | @nowarn annotation does not suppress any warnings
|
74 |
| --- Error: tests/neg-custom-args/nowarn/nowarn.scala:53:0 --------------------------------------------------------------- |
75 |
| -53 |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused) |
| 85 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:60:0 --------------------------------------------------------------- |
| 86 | +60 |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused) |
76 | 87 | |^^^^^^^
|
77 | 88 | |@nowarn annotation does not suppress any warnings
|
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) |
| 89 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:61:27 -------------------------------------------------------------- |
| 90 | +61 |@nowarn def t9b = { 1: Int @nowarn; 2 } // error (inner @nowarn is unused, it covers the type, not the expression) |
80 | 91 | | ^^^^^^^
|
81 | 92 | | @nowarn annotation does not suppress any warnings
|
82 |
| --- Error: tests/neg-custom-args/nowarn/nowarn.scala:59:0 --------------------------------------------------------------- |
83 |
| -59 |@nowarn @ann(f) def t10b = 0 // error (unused nowarn) |
| 93 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:66:0 --------------------------------------------------------------- |
| 94 | +66 |@nowarn @ann(f) def t10b = 0 // error (unused nowarn) |
84 | 95 | |^^^^^^^
|
85 | 96 | |@nowarn annotation does not suppress any warnings
|
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 |
| 97 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:67:8 --------------------------------------------------------------- |
| 98 | +67 |@ann(f: @nowarn) def t10c = 0 // error (unused nowarn), should be silent |
88 | 99 | | ^^^^^^^
|
89 | 100 | | @nowarn annotation does not suppress any warnings
|
90 |
| --- Error: tests/neg-custom-args/nowarn/nowarn.scala:63:0 --------------------------------------------------------------- |
91 |
| -63 |@nowarn class I1a { // error (unused nowarn) |
| 101 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:70:0 --------------------------------------------------------------- |
| 102 | +70 |@nowarn class I1a { // error (unused nowarn) |
92 | 103 | |^^^^^^^
|
93 | 104 | |@nowarn annotation does not suppress any warnings
|
94 |
| --- Error: tests/neg-custom-args/nowarn/nowarn.scala:68:0 --------------------------------------------------------------- |
95 |
| -68 |@nowarn class I1b { // error (unused nowarn) |
| 105 | +-- Error: tests/neg-custom-args/nowarn/nowarn.scala:75:0 --------------------------------------------------------------- |
| 106 | +75 |@nowarn class I1b { // error (unused nowarn) |
96 | 107 | |^^^^^^^
|
97 | 108 | |@nowarn annotation does not suppress any warnings
|
0 commit comments