|
1 | | --- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:9:10 ----------------------------------------------- |
| 1 | +-- [E002] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:9:10 ----------------------------------------------- |
2 | 2 | 9 |def t1a = try 1 // warning (parser) |
3 | 3 | | ^^^^^ |
4 | 4 | | A try without catch or finally is equivalent to putting |
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:23:25 ---------------------------------------------- |
| 8 | +-- [E002] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:23:25 ---------------------------------------------- |
9 | 9 | 23 |@nowarn(o.inl) def t2d = try 1 // two warnings (`inl` is not a compile-time constant) |
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:31:26 ---------------------------------------------- |
| 15 | +-- [E002] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:31:26 ---------------------------------------------- |
16 | 16 | 31 |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id) |
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. |
20 | 20 | | |
21 | 21 | | longer explanation available when compiling with `-explain` |
22 | | --- [E000] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:33:28 ---------------------------------------------- |
| 22 | +-- [E002] Syntax Warning: tests/neg-custom-args/nowarn/nowarn.scala:33:28 ---------------------------------------------- |
23 | 23 | 33 |@nowarn("verbose") def t5 = try 1 // warning with details |
24 | 24 | | ^^^^^ |
25 | 25 | | A try without catch or finally is equivalent to putting |
26 | 26 | | its body in a block; no exceptions are handled. |
27 | 27 | Matching filters for @nowarn or -Wconf: |
28 | | - - id=E0 |
29 | | - - name=EmptyCatchOrFinallyBlock |
| 28 | + - id=E2 |
| 29 | + - name=EmptyCatchAndFinallyBlock |
30 | 30 | | |
31 | 31 | | longer explanation available when compiling with `-explain` |
32 | 32 | -- [E129] Potential Issue Warning: tests/neg-custom-args/nowarn/nowarn.scala:13:11 ------------------------------------- |
|
0 commit comments