Files
kotlin-fork/idea/testData/intentions/simplifyNegatedBinaryExpressionIntention/is.kt
T
Steven Allen d198465522 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
2014-03-19 12:10:28 -04:00

4 lines
104 B
Kotlin

// INTENTION_TEXT: Simplify negated 'is' expression to '!is'
fun test(n: Int) {
!(0<caret> is Int)
}