File tree 4 files changed +9
-7
lines changed
compiler/src/dotty/tools/dotc/reporting 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -806,7 +806,8 @@ object messages {
806
806
}
807
807
808
808
class PatternMatchExhaustivity (uncoveredFn : => String )(implicit ctx : Context )
809
- extends PatternMatchMsg (PatternMatchExhaustivityID ) {
809
+ extends Message (PatternMatchExhaustivityID ) {
810
+ val kind = " Pattern Match Exhaustivity"
810
811
lazy val uncovered = uncoveredFn
811
812
lazy val msg : String =
812
813
em """ | ${hl(" match" )} may not be exhaustive.
@@ -834,7 +835,8 @@ object messages {
834
835
}
835
836
836
837
class MatchCaseUnreachable ()(implicit ctx : Context )
837
- extends PatternMatchMsg (MatchCaseUnreachableID ) {
838
+ extends Message (MatchCaseUnreachableID ) {
839
+ val kind = " Match case Unreachable"
838
840
lazy val msg : String = " Unreachable case"
839
841
lazy val explanation : String = " "
840
842
}
Original file line number Diff line number Diff line change 1
- 10: Only null matched
1
+ 10: Pattern Match
Original file line number Diff line number Diff line change 1
1
6: Match case Unreachable
2
- 13: Only null matched
2
+ 13: Pattern Match
3
3
18: Match case Unreachable
4
- 20: Only null matched
4
+ 20: Pattern Match
Original file line number Diff line number Diff line change 9
9
37: Match case Unreachable
10
10
38: Match case Unreachable
11
11
39: Match case Unreachable
12
- 40: Only null matched
12
+ 40: Pattern Match
13
13
46: Match case Unreachable
14
14
52: Match case Unreachable
15
- 59: Only null matched
15
+ 59: Pattern Match
You can’t perform that action at this time.
0 commit comments