Skip to content

Commit 004e06d

Browse files
committed
REPL wrapper is not ctx.outer
1 parent 06bbf89 commit 004e06d

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

0 commit comments

Comments
 (0)