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.
20 lines
384 B
Kotlin
Vendored
20 lines
384 B
Kotlin
Vendored
// "Replace with 'c.newFun(this)'" "true"
|
|
// WITH_RUNTIME
|
|
|
|
class X {
|
|
@Deprecated("", ReplaceWith("c.newFun(this)"))
|
|
fun oldFun(c: Char): Char = c.newFun(this)
|
|
}
|
|
|
|
fun Char.newFun(x: X): Char = this
|
|
|
|
fun foo(x: X?, p: Boolean, s: String) {
|
|
val chars = s.filter {
|
|
val v = if (p)
|
|
x?.<caret>oldFun(it)
|
|
else
|
|
null
|
|
v != 'a'
|
|
}
|
|
}
|