KT-9729 Invert If Condition intention should run Simplify Negated Expression when applicable

#KT-9729 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-27 22:11:06 +03:00
parent 87f68f3332
commit ce50a27af0
3 changed files with 12 additions and 6 deletions
@@ -3,7 +3,7 @@ fun foo(): Boolean {
}
fun main() {
if (!(foo() && foo())) {
if (!foo() || !foo()) {
foo()
} else {
foo()