Skip to content

Commit 0b44aed

Browse files
authored
Merge pull request #2353 from dotty-staging/fix/FromTasty
FromTasty: fix to work after semantic names
2 parents a5245eb + df16f97 commit 0b44aed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/FromTasty.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ object FromTasty extends Driver {
7474
def readTASTY(unit: CompilationUnit)(implicit ctx: Context): CompilationUnit = unit match {
7575
case unit: TASTYCompilationUnit =>
7676
val className = unit.className.toTypeName
77-
val clsd =
78-
if (className.is(QualifiedName)) ctx.base.staticRef(className)
79-
else defn.EmptyPackageClass.info.decl(className)
77+
val clsd = ctx.base.staticRef(className)
8078
def cannotUnpickle(reason: String) = {
8179
ctx.error(s"class $className cannot be unpickled because $reason")
8280
unit

0 commit comments

Comments
 (0)