Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue2Runtime.kt
T
2015-09-04 18:19:31 +03:00

15 lines
287 B
Kotlin
Vendored

// "Replace with 's.filter { it != c }'" "true"
class X {
@Deprecated("", ReplaceWith("s.filter { it != c }"))
fun oldFun(s: String): CharSequence = s.filter { it != c }
val c = 'x'
}
fun foo(x: X?, s: String) {
bar(x?.<caret>oldFun(s))
}
fun bar(s: CharSequence?){}