Commit a945326
committed
Tweak reachability to only warn after the first reachable case
In the event that the first case is unreachable, the logic descended to
`isSubspace(covered, prevs)` where both are the Empty Space, emitting
warnings. Instead we implement reachability like the Scala 2 compiler
defines it:
// a case is unreachable if it implies its preceding cases1 parent 5fb2ac0 commit a945326
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
929 | 932 | | |
930 | 933 | | |
931 | 934 | | |
| |||
0 commit comments