aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dotty/tools/dotc/core/pickling/UnPickler.scala2
-rw-r--r--test/test/showClass.scala4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/UnPickler.scala b/src/dotty/tools/dotc/core/pickling/UnPickler.scala
index 2c635d092..5b6e76500 100644
--- a/src/dotty/tools/dotc/core/pickling/UnPickler.scala
+++ b/src/dotty/tools/dotc/core/pickling/UnPickler.scala
@@ -645,7 +645,7 @@ class UnPickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClassRoot:
else
pre,
sym.asType)
- } else TypeRef(pre, sym.name.asTypeName)
+ } else TypeRef(pre, sym.name.asTypeName).withDenot(sym)
val args = until(end, readTypeRef)
// if (args.nonEmpty) { // DEBUG
// println(s"reading app type $tycon $args")
diff --git a/test/test/showClass.scala b/test/test/showClass.scala
index 887ec170a..06b85f681 100644
--- a/test/test/showClass.scala
+++ b/test/test/showClass.scala
@@ -6,8 +6,8 @@ object showClass extends ShowClassTests {
def main(args: Array[String]) = {
for (arg <- args) showPackage(ctx.requiredPackage(arg))
- showClasses("scala.tools.nsc.settings.ScalaSettings")
-// showPackage("scala.reflect")
+// showClasses("scala.reflect.io.FileZipArchive")
+ showPackage("scala.reflect")
// showPackage("scala")
println("done")
}