Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice6Runtime.kt
T
2015-05-27 16:15:48 +03:00

15 lines
256 B
Kotlin

// "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 {
return <caret>oldFun(bar())
}
fun bar(): Int? = null