Files
kotlin-fork/idea/testData/intentions/simplifyNegatedBinaryExpression/notIn.kt.after
T
Valentin Kipyatkov 94480e3d5c Renamed in test data
2015-04-16 22:00:53 +03:00

10 lines
178 B
Plaintext
Vendored

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