aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-06-30 18:42:29 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:35:07 +0200
commit34a068b7f6039637d6f1330e3d071f5bf75e9cec (patch)
treeef7b435c50e4110971721836ebdaf9e0d07b4328 /src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala
parent32c0135b59fe02a70ed0b1a693251a0028d479c8 (diff)
downloaddotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.tar.gz
dotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.tar.bz2
dotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.zip
Drop Config.checkKinds
Allows us to drop also the involved knownHK method. Lots of other cleanups.
Diffstat (limited to 'src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala')
-rw-r--r--src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala b/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala
index 1da92d723..e8f3d63a9 100644
--- a/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala
+++ b/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala
@@ -135,13 +135,6 @@ object Scala2Unpickler {
denot.info = ClassInfo( // final info, except possibly for typeparams ordering
denot.owner.thisType, denot.classSymbol, parentRefs, decls, ost)
denot.updateTypeParams(tparams)
-
- // Curiously the following line is needed to make pos/i859.scala compile.
- // This test simply accesses scala.tools.nsc.Global. I could not track down why
- // the reference is needed - referencing any field of the type parameter
- // does the trick, no completion is needed (in fact such completion would
- // cause cyclic references elsewhere).
- assert(denot.typeParams.forall(_.exists))
}
}
@@ -593,7 +586,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
val tag = readByte()
val end = readNat() + readIndex
if (tag == POLYtpe) {
- val unusedRestperef = readNat()
+ val unusedRestpeRef = readNat()
until(end, readSymbolRef).asInstanceOf[List[TypeSymbol]]
} else Nil
}