Skip to content

Commit 2e47114

Browse files
som-snyttWojciechMazur
authored andcommitted
REPL wrapper is not ctx.outer
[Cherry-picked c5d5214]
1 parent aede144 commit 2e47114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/CheckUnused.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ object CheckUnused:
487487
if inliners == 0
488488
&& languageImport(imp.expr).isEmpty
489489
&& !imp.isGeneratedByEnum
490-
&& !ctx.outer.owner.name.isReplWrapperName
490+
&& !ctx.owner.name.isReplWrapperName
491491
then
492492
imps.put(imp, ())
493493
case tree: Bind =>

0 commit comments

Comments
 (0)