Replace "contains" with "in" intention handles negation

This commit is contained in:
Valentin Kipyatkov
2015-05-12 14:13:25 +03:00
parent e601057e93
commit addcadeddf
4 changed files with 32 additions and 7 deletions
@@ -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
}