Skip to content

Commit 781fb87

Browse files
committed
More info when unpickling fails
1 parent d85a207 commit 781fb87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
555555
val tp = readType()
556556
val lazyAnnotTree = readLater(end, rdr => ctx => rdr.readTerm()(ctx))
557557
annots += Annotation.deferredSymAndTree(tp.typeSymbol, _ => lazyAnnotTree.complete)
558-
case _ =>
559-
assert(false, s"illegal modifier tag at $currentAddr")
558+
case tag =>
559+
assert(false, s"illegal modifier tag $tag at $currentAddr, end = $end")
560560
}
561561
}
562562
(flags, annots.toList, privateWithin)

0 commit comments

Comments
 (0)