summaryrefslogtreecommitdiff
path: root/test/files/pos/t1236.scala
blob: 5e221ce4117a474b257ea4c6924c9ca3a0c077cb (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] = Nil
  }

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

  val x = foo[List](ListEmpty)
}