Replace "contains" with "in" intention handles negation
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
fun test() {
|
||||
class Test{
|
||||
fun contains(a: Int) : Boolean = true
|
||||
}
|
||||
val test = Test()
|
||||
if (!test.<caret>contains(1)) return
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun test() {
|
||||
class Test{
|
||||
fun contains(a: Int) : Boolean = true
|
||||
}
|
||||
val test = Test()
|
||||
if (1 !in test) return
|
||||
}
|
||||
Reference in New Issue
Block a user