File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -585,7 +585,7 @@ object CheckUnused:
585
585
val alias = m.owner.info.member(sym.name)
586
586
if alias.exists then
587
587
val aliasSym = alias.symbol
588
- if aliasSym.is( ParamAccessor ) && ! infos.refs(alias.symbol) then
588
+ if aliasSym.isAllOf( PrivateParamAccessor , butNot = CaseAccessor ) && ! infos.refs(alias.symbol) then
589
589
warnAt(pos)(UnusedSymbol .implicitParams)
590
590
else
591
591
warnAt(pos)(UnusedSymbol .implicitParams)
Original file line number Diff line number Diff line change @@ -52,3 +52,7 @@ object Unmatched:
52
52
case Ident (name) =>
53
53
case _ =>
54
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
You can’t perform that action at this time.
0 commit comments