https://kotlinlang.org logo
#announcements
Title
# announcements
b

bdawg.io

09/21/2017, 6:16 AM
I’m not suggesting that the compiler should do anything different if you’re explicitly defining a property as a different type. But my question isn’t about defining 2 properties as
Any
and expecting it to find the equals of the assigned type instead of the defined type
g

gildor

09/21/2017, 6:17 AM
Maybe compareTo operator could help in your case
b

bdawg.io

09/21/2017, 6:21 AM
It doesn’t appear so, I tried it and following the reference still goes to the
equals
convention defined on
Any
3 Views