louiscad
03/28/2017, 12:21 PMhashCode() is implemented by the Kotlin compiler in a data class having a `fun`ction property constructor parameter? e.g.: data class Option(val id: Int, val desc: () -> String)mg6maciej
03/28/2017, 12:23 PMlouiscad
03/28/2017, 12:24 PMmg6maciej
03/28/2017, 12:25 PMkirillrakhman
03/28/2017, 12:50 PMdata class Foo(val id: Int, val desc: Description) where Description doesn't implement hashCode()?mg6maciej
03/28/2017, 12:57 PMdesc.invoke().hashCode()louiscad
03/28/2017, 12:58 PMhashCode() (and equals(other: Any)). Any already implements hashCode(), but it can be less efficient if you stick to the default implementationkirillrakhman
03/28/2017, 12:59 PM