KT-5045: intention to convert between two comparisons and range check and vice versa
This commit is contained in:
committed by
Mikhail Glukhikh
parent
1040c97196
commit
6d6a16f399
+6
@@ -0,0 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
var x = 42
|
||||
|
||||
// Should be converted into arg in --x..++x (41..42) but initial check is arg <= ++x (43) && --x (42) <= arg
|
||||
fun foo(arg: Int) = <caret>arg <= ++x && --x <= arg
|
||||
Reference in New Issue
Block a user