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

15 lines
313 B
Plaintext
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>let { x -> s.filter { it != x.c } })
}
fun bar(s: CharSequence?){}