Skip to content

Commit 88e4879

Browse files
authored
Merge pull request #409 from scala/backport-lts-3.3-22982
Backport "Remove premature caching of lookups for unused lint" to 3.3 LTS
2 parents 69c9ec6 + 9ea3490 commit 88e4879

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)