File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -166,8 +166,10 @@ class Mixin extends MiniPhaseTransform with SymTransformer { thisTransform =>
166
166
DefDef (implementation(getter.asTerm),
167
167
if (isScala2x) {
168
168
if (getter.is(Flags .Lazy )) { // lazy vals need to have a rhs that will be the lazy initializer
169
- val reciever = ref(mixin.implClass)
170
- val sym = reciever.tpe.widen.nonPrivateDecl(getter.name).suchThat(_.is(Lazy )).symbol // lazy val can be overloaded
169
+ val sym = mixin.implClass.info.nonPrivateDecl(getter.name).suchThat(_.info.paramTypess match {
170
+ case List (List (t : TypeRef )) => t.isDirectRef(mixin)
171
+ case _ => false
172
+ }).symbol // lazy val can be overloaded
171
173
ref(mixin.implClass).select(sym).appliedTo(This (ctx.owner.asClass))
172
174
}
173
175
else default
You can’t perform that action at this time.
0 commit comments