We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f8c1b commit a5db9c7Copy full SHA for a5db9c7
src/dotty/tools/dotc/transform/Mixin.scala
@@ -216,7 +216,9 @@ class Mixin extends MiniPhaseTransform with SymTransformer { thisTransform =>
216
val rhs =
217
if (ctx.atPhase(thisTransform)(implicit ctx => getter.is(ParamAccessor))) nextArgument()
218
else if (isScala2x)
219
- if (getter.is(Lazy)) lazyGetterCall
+ if (getter.is(Lazy, Module)) lazyGetterCall
220
+ else if (getter.is(Module))
221
+ New(getter.info.resultType, List(This(cls)))
222
else Underscore(getter.info.resultType)
223
else transformFollowing(superRef(initializer(getter)).appliedToNone)
224
// transformFollowing call is needed to make memoize & lazy vals run
0 commit comments