Skip to content

Commit abb0eab

Browse files
committed
Interactive: fix contextOfPath for Template
1 parent fe2fcc4 commit abb0eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ object Interactive {
310310
}
311311
localCtx
312312
case tree @ Template(constr, parents, self, _) =>
313-
if ((constr :: self :: parents).contains(nested)) ctx
313+
if ((constr :: self :: parents).contains(nested)) outer
314314
else contextOfStat(tree.body, nested, tree.symbol, outer.inClassContext(self.symbol))
315315
case _ =>
316316
outer

0 commit comments

Comments
 (0)