O'Reilly logo
  • MICHAEL MASLENKO thinks this is interesting:

The equals and hashCode methods take into account all the properties declared in the primary constructor

From

Cover of Kotlin in Action

Note

compile subtlety properties taken into account in equals and hashCode for data classes