Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice6Runtime.kt.after
T

16 lines
266 B
Plaintext
Vendored

// "Replace with 'newFun(p, p)'" "true"
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int?): Int {
return newFun(p, p)
}
fun newFun(p1: Int?, p2: Int?): Int = 0
fun foo(): Int {
val p = bar()
return newFun(p, p)
}
fun bar(): Int? = null