Skip to content

Commit 9ea3490

Browse files
som-snytttgodzik
authored andcommitted
REPL wrapper is not ctx.outer
[Cherry-picked c5d5214]
1 parent f6dae08 commit 9ea3490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ object CheckUnused:
456456
if inliners == 0
457457
&& languageImport(imp.expr).isEmpty
458458
&& !imp.isGeneratedByEnum
459-
&& !ctx.outer.owner.name.isReplWrapperName
459+
&& !ctx.owner.name.isReplWrapperName
460460
then
461461
imps.put(imp, ())
462462
case tree: Bind =>

0 commit comments

Comments
 (0)