I see that implementing `equals` for value classes...
# compiler
n
I see that implementing
equals
for value classes is not allowed. Which kind of makes sense, but what about arrays? I have a
value class Ints(val array: IntArray)
which fails on equality checks, because it won’t use contentEquals. Is this going to change in the future?
s
Looks like https://youtrack.jetbrains.com/issue/KT-32402 was closed as working as designed. There are some other related tickets still open but I don’t see anything concrete in the ways of plans to change it.
n
I see, thanks a lot. I guess I will add my use case there
u