New Intention Action: Invert If Condition

Inverts the conditional expression in an if expression.
This commit is contained in:
Pradyoth Kukkapalli
2014-05-12 19:39:32 +04:00
committed by Alexey Sedunov
parent aa20af3cf3
commit 5550924dc5
35 changed files with 486 additions and 1 deletions
@@ -0,0 +1,11 @@
// WITH_RUNTIME
fun main() {
val list = 1..4
for (x in list) {
<caret>if (x == 2) {
list
}
list.equals(list)
}
}