Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix handling imports in TreeUnpickler
  • Loading branch information
odersky committed May 7, 2022
commit 8d2d377bf4bfd591b3bdcef6a746584a734dd483
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ class TreeUnpickler(reader: TastyReader,
val stat = readIndexedStat(exprOwner)(using curCtx)
buf += stat
stat match
case stat: Import => curCtx = ctx.importContext(stat, stat.symbol)
case stat: Import => curCtx = curCtx.importContext(stat, stat.symbol)
case _ =>
assert(currentAddr.index == end.index)
k(buf.toList, curCtx)
Expand Down