summaryrefslogblamecommitdiff
path: root/test/files/pos/t0625.scala
blob: 56145425998fab15de5f2d2550ac46e06c5ee375 (plain) (tree)
1
2
3
4
5
6
7
8

                                                                             
 




                                         
object Test {
  def idMap[C[_],T](m: { def map[U](f: T => U): C[U] }): C[T] = m.map(t => t)

  def main(args: Array[String]): Unit = {
    idMap(Some(5))
    idMap(Responder.constant(5))
  }
}