Files
kotlin-fork/idea/testData/inspectionsLocal/simplifyNegatedBinaryExpression/notIn.kt.after
T
2017-12-26 18:39:51 +03:00

10 lines
176 B
Plaintext
Vendored

// FIX: Replace negated '!in' operation with 'in'
class A(val e: Int) {
operator fun contains(i: Int): Boolean = e == i
}
fun test(n: Int) {
val a = A(1)
0 in a
}