Files
kotlin-fork/idea/testData/intentions/simplifyNegatedBinaryExpressionIntention/in.kt
T

10 lines
188 B
Kotlin

// INTENTION_TEXT: Simplify negated 'in' expression to '!in'
class A(val e: Int) {
fun contains(i: Int): Boolean = e == i
}
fun test(n: Int) {
val a = A(1)
!(0<caret> in a)
}