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.
2 parents 4379077 + 5cee25b commit aa98621Copy full SHA for aa98621
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -675,12 +675,11 @@ trait ImplicitRunInfo:
675
WildcardType
676
else
677
seen.addEntry(t)
678
- apply(
679
- t.underlying match
680
- case TypeBounds(lo, hi) =>
681
- if defn.isBottomTypeAfterErasure(lo) then hi
682
- else AndType.make(lo, hi)
683
- case u => u)
+ t.underlying match
+ case TypeBounds(lo, hi) =>
+ if defn.isBottomTypeAfterErasure(lo) then apply(hi)
+ else AndType.make(apply(lo), apply(hi))
+ case u => apply(u)
684
685
def apply(t: Type) = t.dealias match
686
case t: TypeRef =>
tests/pos/liftToAnchors-hk.scala
@@ -0,0 +1,4 @@
1
+class Foo[F[_], F2[X] >: F[X]] {
2
+ def foo[A](using F[A] <:< F2[A]): Unit = {}
3
+ foo
4
+}
0 commit comments