blob: 75a1befd263ce6327850a3025dc856ddd713512c (
plain) (
tree)
|
|
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)
}
|