aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t1236.scala
blob: eee1cbf02915a0df7d7e1879fe1e5e8a7e35a2d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trait Empty[E[_]] {
  def e[A]: E[A]
}

object T {
  val ListEmpty = new Empty[List] {
    def e[A]/*: List*/ = Nil  // uncomment to get crash
  }

  def foo[F[_]](q:(String,String)) = "hello"
  def foo[F[_]](e: Empty[F]) = "world"

  val x = foo[List](ListEmpty)
}