Replace "||" with "&&" (and the opposite) made more clever about negating expressions

This commit is contained in:
Valentin Kipyatkov
2015-06-02 23:15:36 +03:00
parent ac6ef6b544
commit 9c0d607894
8 changed files with 66 additions and 72 deletions
@@ -1,3 +1,3 @@
fun foo(a: Boolean, c: Int, d: Int) : Boolean {
return !a || !(c == d)
return !a || c != d
}