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

10 lines
189 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)
}