summaryrefslogblamecommitdiff
path: root/test/files/pos/t2797.scala
blob: 4323664e911bf3451a5bb56fcf7df48e44e95ad9 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                          
class MyVector[A] {
  def map[B](f: A => B): MyVector[B] = error("")
}

object Test {
  def unzip[B, C](_this: MyVector[(B, C)]): (MyVector[B], MyVector[C]) = {
    (_this.map{ bc => bc._1 }, _this.map{ bc => bc._2 })
  }
}