Skip to content

Commit dda6d58

Browse files
committed
improve debug message for illegal elided tree
1 parent c03f078 commit dda6d58

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
@@ -1236,8 +1236,9 @@ class TreeUnpickler(reader: TastyReader,
12361236
untpd.Ident(readName()).withType(readType())
12371237
case ELIDED =>
12381238
if !isOutline then
1239-
report.error(
1240-
s"Illegal elided tree in unpickler without ${attributeTagToString(OUTLINEattr)}, ${ctx.source}")
1239+
val msg =
1240+
s"Illegal elided tree in unpickler at $start without ${attributeTagToString(OUTLINEattr)}, ${ctx.source}"
1241+
report.error(msg)
12411242
untpd.Ident(nme.WILDCARD).withType(readType())
12421243
case IDENTtpt =>
12431244
untpd.Ident(readName().toTypeName).withType(readType())

0 commit comments

Comments
 (0)