Skip to content

Commit c5d5214

Browse files
committed
REPL wrapper is not ctx.outer
1 parent 47f76b8 commit c5d5214

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
@@ -436,7 +436,7 @@ object CheckUnused:
436436
if inliners == 0
437437
&& languageImport(imp.expr).isEmpty
438438
&& !imp.isGeneratedByEnum
439-
&& !ctx.outer.owner.name.isReplWrapperName
439+
&& !ctx.owner.name.isReplWrapperName
440440
then
441441
imps.put(imp, ())
442442
case tree: Bind =>

0 commit comments

Comments
 (0)