Apply De Morgan's laws to non-negated binary expressions

So #KT-18460 Fixed
This commit is contained in:
Dmitry Neverov
2017-06-16 12:28:04 +03:00
committed by Mikhail Glukhikh
parent af53a0ecd5
commit 44ce5f73f7
44 changed files with 193 additions and 128 deletions
@@ -0,0 +1,5 @@
class Foo {
fun get(a: Boolean, b: Boolean): Boolean {
return !a || !b
}
}
@@ -0,0 +1,5 @@
class Foo {
fun get(a: Boolean, b: Boolean): Boolean {
return <spot> !(a && b)</spot>
}
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts a boolean expression to an equivalent one using DeMorgan's law.
</body>
</html>