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.
22 lines
404 B
Kotlin
Vendored
22 lines
404 B
Kotlin
Vendored
// "Replace with 'c1.newFun(this, c2)'" "true"
|
|
// WITH_RUNTIME
|
|
|
|
class X {
|
|
@Deprecated("", ReplaceWith("c1.newFun(this, c2)"))
|
|
fun oldFun(c1: Char, c2: Char): Char = c1.newFun(this, c2)
|
|
|
|
val c: Char = 'a'
|
|
}
|
|
|
|
fun Char.newFun(x: X, c: Char): Char = this
|
|
|
|
fun foo(s: String, x: X) {
|
|
val chars = s.filter {
|
|
O.x?.<caret>oldFun(it, x.c) != 'a'
|
|
}
|
|
}
|
|
|
|
object O {
|
|
var x: X? = null
|
|
}
|