|
1 | 1 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:10:7 -----------------------------------------
|
2 |
| -10 | case _: n.type => // warn |
| 2 | +10 | case _: n.type => // warn: unreachable |
3 | 3 | | ^^^^^^^^^
|
4 | 4 | | Unreachable case
|
5 | 5 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:12:7 -----------------------------------------
|
6 |
| -12 | case _ => // warn |
| 6 | +12 | case _ => // warn: unreachable |
7 | 7 | | ^
|
8 | 8 | | Unreachable case
|
9 | 9 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:13:7 -----------------------------------------
|
10 |
| -13 | case _ => // warn |
| 10 | +13 | case _ => // warn: unreachable |
11 | 11 | | ^
|
12 | 12 | | Unreachable case
|
13 | 13 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:18:7 -----------------------------------------
|
14 |
| -18 | case _ => 3 // warn |
| 14 | +18 | case _ => 3 // warn: unreachable |
15 | 15 | | ^
|
16 | 16 | | Unreachable case
|
17 | 17 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:23:7 -----------------------------------------
|
18 |
| -23 | case _: B => // warn |
| 18 | +23 | case _: B => // warn: unreachable |
19 | 19 | | ^^^^
|
20 | 20 | | Unreachable case
|
21 | 21 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:24:7 -----------------------------------------
|
22 |
| -24 | case _ => // warn |
| 22 | +24 | case _ => // warn: unreachable |
23 | 23 | | ^
|
24 | 24 | | Unreachable case
|
25 | 25 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:25:7 -----------------------------------------
|
26 |
| -25 | case null => // warn |
| 26 | +25 | case null => // warn: unreachable |
27 | 27 | | ^^^^
|
28 | 28 | | Unreachable case
|
29 | 29 | -- [E121] Pattern Match Warning: tests/warn/redundant-null.scala:30:7 --------------------------------------------------
|
30 |
| -30 | case _ => // warn |
| 30 | +30 | case _ => // warn: null only |
31 | 31 | | ^
|
32 | 32 | | Unreachable case except for null (if this is intentional, consider writing case null => instead).
|
33 | 33 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:31:7 -----------------------------------------
|
34 |
| -31 | case null => // warn |
| 34 | +31 | case null => // warn: unreachable |
35 | 35 | | ^^^^
|
36 | 36 | | Unreachable case
|
37 | 37 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:32:7 -----------------------------------------
|
38 |
| -32 | case _ => // warn |
| 38 | +32 | case _ => // warn: unreachable |
39 | 39 | | ^
|
40 | 40 | | Unreachable case
|
41 | 41 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:33:7 -----------------------------------------
|
42 |
| -33 | case _ => // warn |
| 42 | +33 | case _ => // warn: unreachable |
43 | 43 | | ^
|
44 | 44 | | Unreachable case
|
45 | 45 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:37:7 -----------------------------------------
|
46 |
| -37 | case _ => println("unreachable") // warn |
| 46 | +37 | case _ => // warn: unreachable |
47 | 47 | | ^
|
48 | 48 | | Unreachable case
|
49 | 49 | -- [E030] Match case Unreachable Warning: tests/warn/redundant-null.scala:41:7 -----------------------------------------
|
50 |
| -41 | case _ => // warn |
| 50 | +41 | case _ => // warn: unreachable |
51 | 51 | | ^
|
52 | 52 | | Unreachable case
|
| 53 | +-- [E121] Pattern Match Warning: tests/warn/redundant-null.scala:45:7 -------------------------------------------------- |
| 54 | +45 | case _ => // warn: null only |
| 55 | + | ^ |
| 56 | + | Unreachable case except for null (if this is intentional, consider writing case null => instead). |
0 commit comments