Add an intention to simplify negated binary expressions
Given an expression of the form `!(a op b)`, replace it with `a !op b`.
For example:
!(a < b) -> a >= b
!(a is Int) -> a !is int
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// INTENTION_TEXT: Simplify negated '!is' expression to 'is'
|
||||
fun test(n: Int) {
|
||||
!(0<caret> !is Int)
|
||||
}
|
||||
Reference in New Issue
Block a user