Skip to content

Commit

Permalink
Fix #4147: Add test case
Browse files Browse the repository at this point in the history
18ce5d2 fixed it.
  • Loading branch information
smarter committed May 17, 2019
1 parent 8332964 commit 4c7ca9a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/pos/i4147.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
trait Higher[F[_]]
trait Super[A]
trait Sub[A] extends Super[A]

object Test {
implicit def higherSub: Higher[Sub] = ???
implicit def deriv[F[_]](implicit bla: Higher[F]): F[String] = ???

val x: Super[String] = deriv
}

0 comments on commit 4c7ca9a

Please sign in to comment.