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

17 lines
246 B
Kotlin
Vendored

// "Replace with 'newFun(this, p)'" "true"
class C {
@Deprecated("", ReplaceWith("newFun(this, p)"))
fun oldFun(p: Int){}
}
fun C.newFun(c: C, p: Int){}
val bar = 0
fun foo() {
getBar().<caret>oldFun(bar)
}
fun getBar(): C = C()