From df16f9792ba0aa0dd803ffb0b5975ca0a6017513 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 2 May 2017 18:53:24 +0200 Subject: [PATCH] FromTasty: fix to work after semantic names --- compiler/src/dotty/tools/dotc/FromTasty.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/FromTasty.scala b/compiler/src/dotty/tools/dotc/FromTasty.scala index da0190fa19fd..f211462e09b6 100644 --- a/compiler/src/dotty/tools/dotc/FromTasty.scala +++ b/compiler/src/dotty/tools/dotc/FromTasty.scala @@ -74,9 +74,7 @@ object FromTasty extends Driver { def readTASTY(unit: CompilationUnit)(implicit ctx: Context): CompilationUnit = unit match { case unit: TASTYCompilationUnit => val className = unit.className.toTypeName - val clsd = - if (className.is(QualifiedName)) ctx.base.staticRef(className) - else defn.EmptyPackageClass.info.decl(className) + val clsd = ctx.base.staticRef(className) def cannotUnpickle(reason: String) = { ctx.error(s"class $className cannot be unpickled because $reason") unit