KT-4568 Bug Fix: Refactored the convertNegatedExpressionWithDemorgansLaw intention to better handle longer and more complex expressions. Fixed bug and added appropriate test cases as well.
This commit is contained in:
committed by
Mikhael Bogdanov
parent
de273c0418
commit
4de6960443
@@ -0,0 +1,3 @@
|
||||
fun foo(a: Boolean, c: Int, d: Int) : Boolean {
|
||||
return !(a <caret>&& c == d)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun foo(a: Boolean, c: Int, d: Int) : Boolean {
|
||||
return !a || !(c == d)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo(a: Int, b: Int, c: Int, d: Int) : Boolean {
|
||||
return !(a < b && c ==<caret> d && a < d)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun foo(a: Int, b: Int, c: Int, d: Int) : Boolean {
|
||||
return !(a < b) || !(c == d) || !(a < d)
|
||||
}
|
||||
Reference in New Issue
Block a user