We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5245eb + df16f97 commit 0b44aedCopy full SHA for 0b44aed
compiler/src/dotty/tools/dotc/FromTasty.scala
@@ -74,9 +74,7 @@ object FromTasty extends Driver {
74
def readTASTY(unit: CompilationUnit)(implicit ctx: Context): CompilationUnit = unit match {
75
case unit: TASTYCompilationUnit =>
76
val className = unit.className.toTypeName
77
- val clsd =
78
- if (className.is(QualifiedName)) ctx.base.staticRef(className)
79
- else defn.EmptyPackageClass.info.decl(className)
+ val clsd = ctx.base.staticRef(className)
80
def cannotUnpickle(reason: String) = {
81
ctx.error(s"class $className cannot be unpickled because $reason")
82
unit
0 commit comments