aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t1236.scala
blob: a84cad0fb558c896d59d22b8a524dfc7a4c13d5a (plain) (tree)
1
2
3
4
5
6
7





                                   
                  






                                            
trait Empty[E[_]] {
  def e[A]: E[A]
}

object T {
  val ListEmpty = new Empty[List] {
    def e[B] = Nil
  }

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

  val x = foo[List](ListEmpty)
}