I'm having difficulty for converting range check t...
# kontributors
s
I'm having difficulty for converting range check to two comparisons. https://youtrack.jetbrains.com/issue/KT-5045 For instance,
Copy code
for (weight in 1..99) {}
this should not be convert to
Copy code
for (1 <= weight && weight <= 99) {}
Is this intention only works for condition of
if
? I'm afraid that there are other cases that should not convert range to two comparisons.