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 @@
fun foo(): Boolean {
return true
}
fun main() {
if (!(foo() && foo())) {
foo()
} else {
foo()
}
}