Convert ConvertTwoComparisonsToRangeCheck intention to inspection

Relates to #KT-17310
This commit is contained in:
Dmitry Gridin
2019-10-25 20:11:27 +07:00
parent 8e4c7ad65d
commit 81f3a98f49
65 changed files with 190 additions and 218 deletions
@@ -0,0 +1,6 @@
// 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