Join Slack
Powered by
Is it expected that this comparison returns false?...
# announcements
a
aballano
07/10/2018, 3:13 PM
Is it expected that this comparison returns false?
(1L as Any)::class.java == (1L)::class.java
r
Ruckus
07/10/2018, 4:28 PM
Yes.
1L as Any
autoboxes the value.
a
aballano
07/11/2018, 2:26 PM
@Ruckus
Yes, but it shouldn't be a
java.lang.Long
i assume
r
Ruckus
07/11/2018, 3:38 PM
Why not? If you run it on the JVM, that's what it is.
3
Views
Open in Slack
Previous
Next