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

10 lines
198 B
Kotlin
Vendored

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