aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i2151.scala
blob: 1ae034c02fab6e0763189702112c86fe186ac432 (plain) (tree)
1
2
3
4
5
6





                                                       
trait Test {
  type Nil = [K] => K
  type StrangeCons[H, Tail <: [H, A] => H] = Tail[H, H]

  def list: StrangeCons[Int, Nil] // error
}