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 b2b0115 commit 02cd651Copy full SHA for 02cd651
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -585,7 +585,7 @@ object CheckUnused:
585
val alias = m.owner.info.member(sym.name)
586
if alias.exists then
587
val aliasSym = alias.symbol
588
- if aliasSym.is(ParamAccessor) && !infos.refs(alias.symbol) then
+ if aliasSym.isAllOf(PrivateParamAccessor, butNot = CaseAccessor) && !infos.refs(alias.symbol) then
589
warnAt(pos)(UnusedSymbol.implicitParams)
590
else
591
tests/warn/i15503f.scala
@@ -52,3 +52,7 @@ object Unmatched:
52
case Ident(name) =>
53
case _ =>
54
e
55
+
56
+trait Ctx
57
+case class K(i: Int)(using val ctx: Ctx) // nowarn
58
+class L(val i: Int)(using val ctx: Ctx) // nowarn
0 commit comments