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

10 lines
178 B
Plaintext

// 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 in a
}