KT-9981 Code cleanup replace usages of !in incorrectly

#KT-9981 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-11-12 17:03:46 +03:00
parent 2f4dbd2084
commit e66f1c2d70
6 changed files with 94 additions and 2 deletions
@@ -0,0 +1,20 @@
// "Replace usages of 'contains(String) on C: Boolean' in whole project" "true"
class C
@Deprecated("", ReplaceWith("checkContains(s)"))
operator fun C.contains(s: String) = true
fun C.checkContains(s: String) = true
fun f(c: C) {
if ("" <caret>!in c) {
}
}
fun g(c: C) {
if ("" in c) {
}
}