https://kotlinlang.org logo
d

danneu

01/15/2017, 12:20 AM
when i
override equals(other: Point) = this.x == other.x && this.y == other.y
, IDEA complains that i should override hashCode as well. how would you do that in this case, or any case where you can't just delegate it to an underlying field?