Skip to content

Commit 04f5bf3

Browse files
committed
Fix the fix
1 parent a6457fb commit 04f5bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/Mixin.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
214214
EmptyTree
215215
}
216216

217-
for (getter <- mixin.info.decls.toList if getter.isGetter && !was(getter, Deferred | Lazy)) yield {
217+
for (getter <- mixin.info.decls.toList if getter.isGetter && !was(getter, Deferred)) yield {
218218
val isScala2x = mixin.is(Scala2x)
219219
def default = Underscore(getter.info.resultType)
220220
def initial = transformFollowing(superRef(initializer(getter)).appliedToNone)
@@ -242,7 +242,7 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
242242
// transformFollowing call is needed to make memoize & lazy vals run
243243
transformFollowing(DefDef(implementation(getter.asTerm), rhs))
244244
}
245-
else if (isScala2x || was(getter, ParamAccessor)) EmptyTree
245+
else if (isScala2x || was(getter, ParamAccessor | Lazy)) EmptyTree
246246
else initial
247247
}
248248
}

0 commit comments

Comments
 (0)