Skip to content

Commit 49e76d9

Browse files
committed
Avoid setting info with parents too early when unpickling
Adding parents signals (via SymDenotation.fullyDefined) that the class can now be frozen. So this should be done only after all members are entered.
1 parent 4876e3b commit 49e76d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ object Scala2Unpickler {
112112
if (tsym.exists) tsym.setFlag(TypeParam)
113113
else denot.enter(tparam, decls)
114114
}
115-
denot.info = ClassInfo(
116-
denot.owner.thisType, denot.classSymbol, parentRefs, decls, ost) // more refined infowith parents
117115
if (!(denot.flagsUNSAFE is JavaModule)) ensureConstructor(denot.symbol.asClass, decls)
118116

119117
val scalacCompanion = denot.classSymbol.scalacLinkedClass

0 commit comments

Comments
 (0)