Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/operatorCalls/in.kt.after
T
2015-11-13 14:32:33 +03:00

21 lines
331 B
Plaintext
Vendored

// "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 (!c.checkContains("")) {
}
}
fun g(c: C) {
if (c.checkContains("")) {
}
}