File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1080,7 +1080,7 @@ object Types {
1080
1080
case tp @ MethodType (Nil ) => tp.resultType
1081
1081
case _ => tp
1082
1082
}
1083
- val overrideCtx = if relaxedCheck && ! ctx.mode.is( Mode . RelaxedOverriding ) then ctx.relaxedOverrideContext else ctx
1083
+ val overrideCtx = if relaxedCheck then ctx.relaxedOverrideContext else ctx
1084
1084
inContext(overrideCtx) {
1085
1085
! checkClassInfo && this .isInstanceOf [ClassInfo ]
1086
1086
|| (this .widenExpr frozen_<:< that.widenExpr)
Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ object RefChecks {
767
767
for (mbrd <- self.member(name).alternatives) {
768
768
val mbr = mbrd.symbol
769
769
val mbrType = mbr.info.asSeenFrom(self, mbr.owner)
770
- if (! mbrType.overrides(mbrd.info, false , matchLoosely = true ))
770
+ if (! mbrType.overrides(mbrd.info, relaxedCheck = false , matchLoosely = true ))
771
771
report.errorOrMigrationWarning(
772
772
em """ ${mbr.showLocated} is not a legal implementation of ` $name` in $clazz
773
773
| its type $mbrType
You can’t perform that action at this time.
0 commit comments