File tree 2 files changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/transform
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -729,7 +729,7 @@ object CheckUnused:
729
729
if selector.isGiven then
730
730
// Further check that the symbol is a given or implicit and conforms to the bound
731
731
sym.isOneOf(Given | Implicit )
732
- && (selector.bound.isEmpty || sym.info <:< selector.boundTpe)
732
+ && (selector.bound.isEmpty || sym.info.finalResultType <:< selector.boundTpe)
733
733
&& selData.qualTpe =:= prefix
734
734
else
735
735
// Normal wildcard, check that the symbol is not a given (but can be implicit)
Original file line number Diff line number Diff line change @@ -30,3 +30,7 @@ def `i19657 check prefix to pick specific selector`: Unit =
30
30
import FooCodec .given_Schema_A
31
31
import BarCodec .given_Schema_A
32
32
summonSchemas
33
+
34
+ def `i20860 use result to check selector bound` : Unit =
35
+ import Ordering .Implicits .given Ordering [? ]
36
+ summon[Ordering [Seq [Int ]]]
You can’t perform that action at this time.
0 commit comments