pavlospt
08/08/2017, 7:44 AMelizarov
08/08/2017, 12:36 PMpavlospt
08/08/2017, 12:39 PMilya.gorbunov
08/09/2017, 4:35 PMClosedRange.contains
is a virtual method, which can be implemented differently in inheritors.
We've strived to reimplement contains
extensions such that they delegated the check to the contains
member.
It turned out that could lead to some weird results related to rounding, as it was mentioned in the issue https://youtrack.jetbrains.com/issue/KT-18938. We're still to discuss what should be the correct behavior in that case.voddan
08/09/2017, 4:44 PMilya.gorbunov
08/09/2017, 4:49 PM3.5
be in an IntRange 1..4
given that it's never returned when we iterate values of that range?elizarov
08/09/2017, 5:01 PM3.0 in 1..4
. I, frankly, believe it should be false
(added that to the issue)pavlospt
08/09/2017, 5:06 PM