Apply De Morgan's laws to non-negated binary expressions
So #KT-18460 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
af53a0ecd5
commit
44ce5f73f7
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
fun get(a: Boolean, b: Boolean): Boolean {
|
||||
return !a || !b
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
fun get(a: Boolean, b: Boolean): Boolean {
|
||||
return <spot> !(a && b)</spot>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a boolean expression to an equivalent one using DeMorgan's law.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user