summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
index 2b37a28853..b96fbe827c 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
@@ -498,8 +498,11 @@ abstract class Pickler extends SubComponent {
} else {
writeRef(sym.name); EXTref
}
- if (!sym.owner.isRoot) writeRef(sym.owner)
- tag
+ if (!sym.owner.isRoot && sym.owner != NoSymbol)
+ writeRef(sym.owner)
+
+ if (sym.owner == NoSymbol) NONEsym
+ else tag
case sym: ClassSymbol =>
val posOffset = writeSymInfo(sym)
if (sym.thisSym.tpe != sym.tpe) writeRef(sym.typeOfThis)