From 192152808cbcbbb6fe657295a288ebe12456b93e Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 12 Mar 2014 18:03:59 -0700 Subject: [PATCH] SI-5605 case class equals only considers first param section --- 07-classes-and-objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07-classes-and-objects.md b/07-classes-and-objects.md index 617de328b219..139599b7eff5 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