Skip to content

Commit 5a38efe

Browse files
authored
Merge pull request #15137 from dotty-staging/fix-15097-2
Fix handling imports in TreeUnpickler
2 parents ee5bab9 + 8d2d377 commit 5a38efe

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
@@ -1067,7 +1067,7 @@ class TreeUnpickler(reader: TastyReader,
10671067
val stat = readIndexedStat(exprOwner)(using curCtx)
10681068
buf += stat
10691069
stat match
1070-
case stat: Import => curCtx = ctx.importContext(stat, stat.symbol)
1070+
case stat: Import => curCtx = curCtx.importContext(stat, stat.symbol)
10711071
case _ =>
10721072
assert(currentAddr.index == end.index)
10731073
k(buf.toList, curCtx)

0 commit comments

Comments
 (0)