Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCall.kt.after
T
2015-09-04 18:19:31 +03:00

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)
}
}