I\'m learning Kotlin, with a C++ and Java background. I was expecting the following to print true, not false. I know that == maps to <
true
false
==
The default equals implementation you're describing exists only for data classes. Not for regular classes where the implementation is inherited from Any, and just make the object equal to itself.
equals
Any