Convert ConvertTwoComparisonsToRangeCheck intention to inspection
Relates to #KT-17310
This commit is contained in:
+6
@@ -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
|
||||
Reference in New Issue
Block a user