diff options
author | Paul Phillips <paulp@improving.org> | 2009-07-09 18:06:38 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-07-09 18:06:38 +0000 |
commit | 79dc3b49f0ed25fcc7cb33fc8fe1c13a6fdc21b3 (patch) | |
tree | 82b7ad10b7c86db1ad1221cdfd4519ed664ada08 /test/files/scalap/caseClass | |
parent | ccfb3b9c1697379335992b085368557297c72e2d (diff) | |
download | scala-79dc3b49f0ed25fcc7cb33fc8fe1c13a6fdc21b3.tar.gz scala-79dc3b49f0ed25fcc7cb33fc8fe1c13a6fdc21b3.tar.bz2 scala-79dc3b49f0ed25fcc7cb33fc8fe1c13a6fdc21b3.zip |
Implementation and test cases for canEqual meth...
Implementation and test cases for canEqual method in case classes. Now
the autogenerated equality method inquires with the argument as to
whether other.canEqual(this) before returning true.
Diffstat (limited to 'test/files/scalap/caseClass')
-rw-r--r-- | test/files/scalap/caseClass/result.test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/scalap/caseClass/result.test b/test/files/scalap/caseClass/result.test index 3daa036d18..be64349cb1 100644 --- a/test/files/scalap/caseClass/result.test +++ b/test/files/scalap/caseClass/result.test @@ -11,4 +11,5 @@ case class CaseClass[A >: scala.Nothing <: scala.Seq[scala.Int]] extends java.la override def productPrefix : java.lang.String = { /* compiled code */ } override def productArity : scala.Int = { /* compiled code */ } override def productElement(x$1 : scala.Int) : scala.Any = { /* compiled code */ } + override def canEqual(x$1 : scala.Any) : scala.Boolean = { /* compiled code */ } }
\ No newline at end of file |