Skip to content

Commit c597757

Browse files
committed
LazyVals: fix leftover moduleClass usage.
1 parent 63e55a1 commit c597757

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
@@ -353,7 +353,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer {
353353
val id = info.ord / flagsPerLong
354354
val offsetById = offsetName(id)
355355
if (ord != 0) { // there are unused bits in already existing flag
356-
offsetSymbol = claz.moduleClass.info.decl(offsetById)
356+
offsetSymbol = claz.info.decl(offsetById)
357357
.suchThat(sym => (sym is Flags.Synthetic) && sym.isTerm)
358358
.symbol.asTerm
359359
} else { // need to create a new flag

0 commit comments

Comments
 (0)