blob: bf888168856587a897eb697b6e49fbc8bddf5141 (
plain) (
blame)
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 {
new Bar(2, 'a') match {
case Bar(x,y) =>
}
}
|