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