Skip to content

Commit 60dfd96

Browse files
committed
improve debug message for illegal elided tree
1 parent 28cb6a7 commit 60dfd96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,8 +1231,9 @@ class TreeUnpickler(reader: TastyReader,
12311231
untpd.Ident(readName()).withType(readType())
12321232
case ELIDED =>
12331233
if !isOutline then
1234-
report.error(
1235-
s"Illegal elided tree in unpickler without ${attributeTagToString(OUTLINEattr)}, ${ctx.source}")
1234+
val msg =
1235+
s"Illegal elided tree in unpickler at $start without ${attributeTagToString(OUTLINEattr)}, ${ctx.source}"
1236+
report.error(msg)
12361237
untpd.Ident(nme.WILDCARD).withType(readType())
12371238
case IDENTtpt =>
12381239
untpd.Ident(readName().toTypeName).withType(readType())

0 commit comments

Comments
 (0)