Kotlin allows comparison of types that cannot be e...
# announcements
j
Kotlin allows comparison of types that cannot be equal using
equals(...)
, but it has more stricter checks for
==
. If the compilers knows that the types cannot be equal, it will not allow it. Similar to casts that always fail or succeed