File tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1021,7 +1021,7 @@ object Denotations {
1021
1021
* erasure (see i8615b, i9109b), Erasure takes care of adding any necessary
1022
1022
* bridge to make this work at runtime.
1023
1023
*/
1024
- def matchesLoosely (other : SingleDenotation , alwaysCompareParams : Boolean = false )(using Context ): Boolean =
1024
+ def matchesLoosely (other : SingleDenotation , alwaysCompareTypes : Boolean = false )(using Context ): Boolean =
1025
1025
if isType then true
1026
1026
else
1027
1027
val thisLanguage = SourceLanguage (symbol)
@@ -1031,7 +1031,7 @@ object Denotations {
1031
1031
val otherSig = other.signature(commonLanguage)
1032
1032
sig.matchDegree(otherSig) match
1033
1033
case FullMatch =>
1034
- ! alwaysCompareParams || info.matches(other.info)
1034
+ ! alwaysCompareTypes || info.matches(other.info)
1035
1035
case MethodNotAMethodMatch =>
1036
1036
! ctx.erasedTypes && {
1037
1037
// A Scala zero-parameter method and a Scala non-method always match.
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ object RefChecks {
324
324
(if (member.owner == clazz) member else clazz).srcPos))
325
325
326
326
/** Do types of term members `member` and `other` as seen from `self` match?
327
- * If not we treat them as not a real override and don't issue certain
327
+ * If not we treat them as not a real override and don't issue override
328
328
* error messages. Also, bridges are not generated in this case.
329
329
* Type members are always assumed to match.
330
330
*/
@@ -595,7 +595,7 @@ object RefChecks {
595
595
clazz.nonPrivateMembersNamed(mbr.name)
596
596
.filterWithPredicate(
597
597
impl => isConcrete(impl.symbol)
598
- && mbrDenot.matchesLoosely(impl, alwaysCompareParams = true ))
598
+ && mbrDenot.matchesLoosely(impl, alwaysCompareTypes = true ))
599
599
.exists
600
600
601
601
/** The term symbols in this class and its baseclasses that are
You can’t perform that action at this time.
0 commit comments