Skip to content

Commit e136027

Browse files
committed
LazyVals: last fix that allows to compile -deep dotc.
1 parent 8260f14 commit e136027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/LazyVals.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer {
321321
case None =>
322322
offsetSymbol = ctx.newSymbol(companion.moduleClass, (StdNames.nme.LAZY_FIELD_OFFSET + "0").toTermName, Flags.Synthetic, defn.LongType).enteredAfter(this)
323323
val flagName = (StdNames.nme.BITMAP_PREFIX + "0").toTermName
324-
val flagSymbol = ctx.newSymbol(claz, flagName, containerFlags, defn.LongType).entered
324+
val flagSymbol = ctx.newSymbol(claz, flagName, containerFlags, defn.LongType).enteredAfter(this)
325325
flag = ValDef(flagSymbol, Literal(Constants.Constant(0L)))
326326
val offsetTree = ValDef(offsetSymbol, getOffset.appliedTo(thizClass, Literal(Constant(flagName.toString))))
327327
appendOffsetDefs += (companion.moduleClass -> new OffsetInfo(List(offsetTree), ord))

0 commit comments

Comments
 (0)