e2f75463d7
Don't reconfigure runtime before every test. For consistency, mark tests that require the runtime with directives instead of relying on test file names.
16 lines
303 B
Kotlin
Vendored
16 lines
303 B
Kotlin
Vendored
// "Replace with 's.filter { it != c }'" "true"
|
|
// WITH_RUNTIME
|
|
|
|
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?){}
|