Skip to content

Commit 4d0b9ed

Browse files
committed
Fix contextOfStats
1 parent a2eb753 commit 4d0b9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/interactive/Interactive.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ object Interactive {
355355
ctx.exprContext(stat, exprOwner)
356356
case (imp: Import) :: rest =>
357357
contextOfStat(rest, stat, exprOwner, ctx.importContext(imp, imp.symbol(ctx)))
358-
case _ =>
359-
ctx
358+
case _ :: rest =>
359+
contextOfStat(rest, stat, exprOwner, ctx)
360360
}
361361

362362
def contextOfPath(path: List[Tree])(implicit ctx: Context): Context = path match {

0 commit comments

Comments
 (0)