15 lines
273 B
Plaintext
Vendored
15 lines
273 B
Plaintext
Vendored
// "Replace with 's.newFun(this)'" "true"
|
|
|
|
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?) {
|
|
<caret>if (x != null) {
|
|
"a".newFun(x)
|
|
}
|
|
}
|