Skip to content

Commit 8d2d377

Browse files
committed
Fix handling imports in TreeUnpickler
1 parent 9b40981 commit 8d2d377

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ class TreeUnpickler(reader: TastyReader,
10661066
val stat = readIndexedStat(exprOwner)(using curCtx)
10671067
buf += stat
10681068
stat match
1069-
case stat: Import => curCtx = ctx.importContext(stat, stat.symbol)
1069+
case stat: Import => curCtx = curCtx.importContext(stat, stat.symbol)
10701070
case _ =>
10711071
assert(currentAddr.index == end.index)
10721072
k(buf.toList, curCtx)

0 commit comments

Comments
 (0)