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

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