1- -- [E121] Pattern Match Warning: tests\ explicit-nulls\ warn\ i21577.scala:5:9 --------------------------------------------
2- 5 | case _ => // warn
3- | ^
4- | Unreachable case except for null (if this is intentional, consider writing case null => instead).
5- -- [E121] Pattern Match Warning: tests\ explicit-nulls\ warn\ i21577.scala:12:9 -------------------------------------------
6- 12 | case _ => // warn
7- | ^
8- | Unreachable case except for null (if this is intentional, consider writing case null => instead).
9- -- [E121] Pattern Match Warning: tests\ explicit-nulls\ warn\ i21577.scala:16:7 -------------------------------------------
10- 16 | case _ => // warn
11- | ^
12- | Unreachable case except for null (if this is intentional, consider writing case null => instead).
13- -- [E121] Pattern Match Warning: tests\ explicit-nulls\ warn\ i21577.scala:20:7 -------------------------------------------
14- 20 | case _ => // warn
15- | ^
16- | Unreachable case except for null (if this is intentional, consider writing case null => instead).
17- -- [E029] Pattern Match Exhaustivity Warning: tests\ explicit-nulls\ warn\ i21577.scala:29:27 -----------------------------
18- 29 |def f7(s: String | Null) = s match // warn
19- | ^
20- | match may not be exhaustive.
21- |
22- | It would fail on pattern case: _: Null
23- |
24- | longer explanation available when compiling with `-explain`
25- -- [E029] Pattern Match Exhaustivity Warning: tests\ explicit-nulls\ warn\ i21577.scala:36:33 -----------------------------
26- 36 |def f9(s: String | Int | Null) = s match // warn
27- | ^
28- | match may not be exhaustive.
29- |
30- | It would fail on pattern case: _: Int
31- |
32- | longer explanation available when compiling with `-explain`
1+ -- [E121] Pattern Match Warning: tests/ explicit-nulls/ warn/ i21577.scala:5:9 --------------------------------------------
2+ 5 | case _ => // warn: null only
3+ | ^
4+ | Unreachable case except for null (if this is intentional, consider writing case null => instead).
5+ -- [E121] Pattern Match Warning: tests/ explicit-nulls/ warn/ i21577.scala:12:9 -------------------------------------------
6+ 12 | case _ => // warn: null only
7+ | ^
8+ | Unreachable case except for null (if this is intentional, consider writing case null => instead).
9+ -- [E121] Pattern Match Warning: tests/ explicit-nulls/ warn/ i21577.scala:16:7 -------------------------------------------
10+ 16 | case _ => // warn: null only
11+ | ^
12+ | Unreachable case except for null (if this is intentional, consider writing case null => instead).
13+ -- [E030] Match case Unreachable Warning: tests/ explicit-nulls/ warn/ i21577.scala:20:7 ----------------------------------
14+ 20 | case _ => // warn: unreachable
15+ | ^
16+ | Unreachable case
17+ -- [E029] Pattern Match Exhaustivity Warning: tests/ explicit-nulls/ warn/ i21577.scala:29:27 -----------------------------
18+ 29 |def f7(s: String | Null) = s match // warn: not exhaustive
19+ | ^
20+ | match may not be exhaustive.
21+ |
22+ | It would fail on pattern case: _: Null
23+ |
24+ | longer explanation available when compiling with `-explain`
25+ -- [E029] Pattern Match Exhaustivity Warning: tests/ explicit-nulls/ warn/ i21577.scala:36:33 -----------------------------
26+ 36 |def f9(s: String | Int | Null) = s match // warn: not exhaustive
27+ | ^
28+ | match may not be exhaustive.
29+ |
30+ | It would fail on pattern case: _: Int
31+ |
32+ | longer explanation available when compiling with `-explain`
0 commit comments