Files
kotlin-fork/idea/testData/intentions/simplifyNegatedBinaryExpression/in.kt
T
2015-05-14 01:10:08 +03:00

10 lines
188 B
Kotlin
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)
<caret>!(0 in a)
}