summaryrefslogblamecommitdiff
path: root/test/pending/pos/unapplyGeneric.scala
blob: 3798d0b466f7111bdc46d0a7420bdc5d9f806350 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                        
object Bar {
  def unapply[A,B](bar:Bar[A,B]) = Some(bar)
}

class Bar[A,B](val _1:A, val _2:B) extends Product2[A,B]

object Test {
  Bar(2, 'a') match {
    case Bar(x,y) =>
  }
}