Skip to content

Commit 86a2050

Browse files
committed
TreeUnpickler: do not capture Context in Annotation tree
1 parent b9019e5 commit 86a2050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
554554
val end = readEnd()
555555
val tp = readType()
556556
val lazyAnnotTree = readLater(end, rdr => ctx => rdr.readTerm()(ctx))
557-
annots += Annotation.deferredSymAndTree(tp.typeSymbol, _ => lazyAnnotTree.complete)
557+
annots += Annotation.deferredSymAndTree(tp.typeSymbol, implicit ctx => lazyAnnotTree.complete)
558558
case tag =>
559559
assert(false, s"illegal modifier tag $tag at $currentAddr, end = $end")
560560
}

0 commit comments

Comments
 (0)