The type of equals is always `Any?`, because the c...
# announcements
j
The type of equals is always
Any?
, because the compiler cannot enforce a
Value
being passed to your own
equals(...)
method:
Copy code
val x: Any = Value(1)
val y: Any = Value(2)
println(x == y) // Both are "Any" here, so the compiler does not know about "Value.equals(Value)"