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.
18 lines
266 B
Kotlin
Vendored
18 lines
266 B
Kotlin
Vendored
// "Replace with 'newFun()'" "true"
|
|
// WITH_RUNTIME
|
|
|
|
class C {
|
|
@Deprecated("", ReplaceWith("newFun()"))
|
|
fun oldFun(): Int {
|
|
return newFun()
|
|
}
|
|
}
|
|
|
|
fun newFun(): Int = 0
|
|
|
|
fun foo(): Int? {
|
|
return getC()?.<caret>oldFun()
|
|
}
|
|
|
|
fun getC(): C? = null
|