We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b87a0 commit 2a2a111Copy full SHA for 2a2a111
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -473,6 +473,7 @@ object CheckUnused:
473
if ctx.settings.WunusedHas.explicits then
474
explicitParamInScope
475
.filterNot(d => d.symbol.usedDefContains)
476
+ .filterNot(d => usedInPosition.exists { case (pos, name) => d.span.contains(pos.span) && name == d.symbol.name})
477
.filterNot(d => containsSyntheticSuffix(d.symbol))
478
.map(d => d.namePos -> WarnTypes.ExplicitParams).toList
479
else
tests/neg-custom-args/fatal-warnings/i15503i.scala
@@ -300,4 +300,4 @@ package foo.test.i17117:
300
301
val test = t1.test
302
}
303
- }
+ }
0 commit comments