Refactoring: "simplify negated binary expression" is now an inspection

This commit is contained in:
Mikhail Glukhikh
2017-12-20 20:41:50 +03:00
parent 35d85ddd1f
commit bc361363d5
56 changed files with 292 additions and 292 deletions
@@ -0,0 +1,9 @@
// FIX: Simplify negated '!in' expression to 'in'
class A(val e: Int) {
operator fun contains(i: Int): Boolean = e == i
}
fun test(n: Int) {
val a = A(1)
<caret>!(0 !in a)
}