Is it expected that this comparison returns false?...
# announcements
a
Is it expected that this comparison returns false?
(1L as Any)::class.java == (1L)::class.java
r
Yes.
1L as Any
autoboxes the value.
a
@Ruckus Yes, but it shouldn't be a
java.lang.Long
i assume
r
Why not? If you run it on the JVM, that's what it is.