aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i2009.scala
blob: e2cf472038d76868889829a3af7b038bb82f0b25 (plain) (blame)
1
2
3
4
5
6
7
8
9
object Test {

  trait Gen[T] {
    def map[U](f: T => U): Gen[U] = ???
  }

  def f[T](implicit g: Gen[T]): Gen[() => T] =
    g map ( () => _ )
}