15 lines
287 B
Kotlin
Vendored
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?){}
|