diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-13 19:06:49 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-17 17:53:38 +0100 |
commit | c435a8a2e3df50f3ca41f2f9f9f9d8d22a037785 (patch) | |
tree | f797e5c812c0a1f9b5629f9f0494dafc9585af7c /src/dotty/tools/dotc/core/unpickleScala2 | |
parent | 7a61c8693fd7f3431d5a80829a6a051151969122 (diff) | |
download | dotty-c435a8a2e3df50f3ca41f2f9f9f9d8d22a037785.tar.gz dotty-c435a8a2e3df50f3ca41f2f9f9f9d8d22a037785.tar.bz2 dotty-c435a8a2e3df50f3ca41f2f9f9f9d8d22a037785.zip |
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.
Diffstat (limited to 'src/dotty/tools/dotc/core/unpickleScala2')
-rw-r--r-- | src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala b/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala index 8f4b47058..d58122f2d 100644 --- a/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala +++ b/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala @@ -112,8 +112,6 @@ object Scala2Unpickler { if (tsym.exists) tsym.setFlag(TypeParam) else denot.enter(tparam, decls) } - denot.info = ClassInfo( - denot.owner.thisType, denot.classSymbol, parentRefs, decls, ost) // more refined infowith parents if (!(denot.flagsUNSAFE is JavaModule)) ensureConstructor(denot.symbol.asClass, decls) val scalacCompanion = denot.classSymbol.scalacLinkedClass |