Refactoring: "simplify negated binary expression" is now an inspection
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user