Skip to content

Commit

Permalink
Merge pull request #13264 from dotty-staging/fix-10077
Browse files Browse the repository at this point in the history
Fix #10077: Add regression test
  • Loading branch information
odersky authored Aug 6, 2021
2 parents fea778d + a902b75 commit ac5e534
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/pos/10077.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
trait T[F[_[_]]]

type Inner[x] = [X[_]] =>> x match { case T[f] => f[X] }

trait Monad[F[_]]
type TMonad = T[Monad]

trait U[T0]:
type T0_member = T0
def f(x: Inner[T0][List]): Unit

class X extends U[T[Monad]]:
def f(x: Inner[T0_member][List]): Unit = ???

0 comments on commit ac5e534

Please sign in to comment.