summaryrefslogtreecommitdiff
path: root/test/files/pos/unapplyGeneric.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/unapplyGeneric.scala')
-rw-r--r--test/files/pos/unapplyGeneric.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/files/pos/unapplyGeneric.scala b/test/files/pos/unapplyGeneric.scala
index bf88816885..987efdd956 100644
--- a/test/files/pos/unapplyGeneric.scala
+++ b/test/files/pos/unapplyGeneric.scala
@@ -2,7 +2,9 @@ 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]
+class Bar[A,B](val _1:A, val _2:B) extends Product2[A,B] {
+ def canEqual(other: Any) = other.isInstanceOf[Bar[_,_]]
+}
object Test {
new Bar(2, 'a') match {