diff options
author | Martin Odersky <odersky@gmail.com> | 2016-11-23 19:04:55 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-11-24 13:09:05 +0100 |
commit | 2f1a7946c01f3f08d4354465e6890c4214faf328 (patch) | |
tree | 652ba7ea49bd791149bef5d51439d4d671e14c09 /compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | |
parent | 473230c638820b9c1d9cf40c218a5e9fc8caaa9f (diff) | |
download | dotty-2f1a7946c01f3f08d4354465e6890c4214faf328.tar.gz dotty-2f1a7946c01f3f08d4354465e6890c4214faf328.tar.bz2 dotty-2f1a7946c01f3f08d4354465e6890c4214faf328.zip |
More info when unpickling fails
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala index 66cfcf453..51f08a295 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala @@ -555,8 +555,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle val tp = readType() val lazyAnnotTree = readLater(end, rdr => ctx => rdr.readTerm()(ctx)) annots += Annotation.deferredSymAndTree(tp.typeSymbol, _ => lazyAnnotTree.complete) - case _ => - assert(false, s"illegal modifier tag at $currentAddr") + case tag => + assert(false, s"illegal modifier tag $tag at $currentAddr, end = $end") } } (flags, annots.toList, privateWithin) |