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 8332964 commit 4c7ca9aCopy full SHA for 4c7ca9a
tests/pos/i4147.scala
@@ -0,0 +1,10 @@
1
+trait Higher[F[_]]
2
+trait Super[A]
3
+trait Sub[A] extends Super[A]
4
+
5
+object Test {
6
+ implicit def higherSub: Higher[Sub] = ???
7
+ implicit def deriv[F[_]](implicit bla: Higher[F]): F[String] = ???
8
9
+ val x: Super[String] = deriv
10
+}
0 commit comments