Files
kotlin-fork/idea/testData/inspectionsLocal/convertTwoComparisonsToRangeCheck/flippedSideEffect.kt
T
2019-10-29 17:24:21 +07:00

6 lines
190 B
Kotlin
Vendored

// PROBLEM: none
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