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

13 lines
243 B
Kotlin
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?) {
x?.<caret>oldFun("a")
}