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 db2aec1 commit 12f75a9Copy full SHA for 12f75a9
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -625,7 +625,7 @@ object CheckUnused:
625
if selector.isGiven then // Further check that the symbol is a given or implicit and conforms to the bound
626
sym.isOneOf(Given | Implicit)
627
&& (selector.bound.isEmpty || sym.info.finalResultType <:< selector.boundTpe)
628
- && selData.qualTpe =:= prefix
+ && (prefix.eq(NoPrefix) || selData.qualTpe =:= prefix)
629
else
630
!sym.is(Given) // Normal wildcard, check that the symbol is not a given (but can be implicit)
631
}
0 commit comments