Skip to content

Commit 398bb0e

Browse files
committed
nested local lazy vals
1 parent d60c82b commit 398bb0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/nsc/transform/Fields.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ abstract class Fields extends InfoTransform with ast.TreeDSL with TypingTransfor
647647

648648
if (rhs == EmptyTree) mkAccessor(statSym)(EmptyTree)
649649
else if (clazz.isTrait) mkAccessor(statSym)(transformedRhs)
650-
else if (!clazz.isClass) mkLazyLocalDef(vd.symbol, rhs)
650+
else if (!clazz.isClass) mkLazyLocalDef(vd.symbol, transformedRhs)
651651
else {
652652
// TODO: make `synthAccessorInClass` a field and update it in atOwner?
653653
// note that `LazyAccessorTreeSynth` is pretty lightweight

0 commit comments

Comments
 (0)