diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-12 18:03:59 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-12 18:03:59 -0700 |
commit | 192152808cbcbbb6fe657295a288ebe12456b93e (patch) | |
tree | f5153096830e5ce19ebd30ef227bbf1146a805df | |
parent | 51f3ac1f36737606a2921a2abca39c1ca7962324 (diff) | |
download | scala-192152808cbcbbb6fe657295a288ebe12456b93e.tar.gz scala-192152808cbcbbb6fe657295a288ebe12456b93e.tar.bz2 scala-192152808cbcbbb6fe657295a288ebe12456b93e.zip |
SI-5605 case class equals only considers first param section
-rw-r--r-- | 07-classes-and-objects.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/07-classes-and-objects.md b/07-classes-and-objects.md index 617de328b2..139599b7ef 100644 --- a/07-classes-and-objects.md +++ b/07-classes-and-objects.md @@ -915,7 +915,7 @@ class different from `AnyRef`. In particular: - Method `equals: (Any)Boolean` is structural equality, where two instances are equal if they both belong to the case class in question and they - have equal (with respect to `equals`) constructor arguments. + have equal (with respect to `equals`) constructor arguments (restricted to the class's _elements_, i.e., the first parameter section). - Method `hashCode: Int` computes a hash-code. If the hashCode methods of the data structure members map equal (with respect to equals) values to equal hash-codes, then the case class hashCode method does |