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

21 lines
314 B
Kotlin
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 ("" <caret>!in c) {
}
}
fun g(c: C) {
if ("" in c) {
}
}