Skip to content

Commit 7427fb8

Browse files
committed
Explicitly match case NoMatch in enum MatchDegree
Instead of `case noMatch` which is same as `case _`
1 parent a7b1514 commit 7427fb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ object Denotations {
623623
relaxed && !symbol.is(JavaDefined)
624624
case ParamMatch =>
625625
relaxed
626-
case noMatch =>
626+
case NoMatch =>
627627
false
628628
if matches then this else NoDenotation
629629

@@ -981,7 +981,7 @@ object Denotations {
981981
case ParamMatch =>
982982
// The signatures do not tell us enough to be sure about matching
983983
!ctx.erasedTypes && info.matches(other.info)
984-
case noMatch =>
984+
case NoMatch =>
985985
false
986986
end matches
987987

0 commit comments

Comments
 (0)