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

13 lines
210 B
Kotlin
Vendored

// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int?): Int {
return newFun()
}
fun newFun(): Int = 0
fun foo(): Int = <caret>oldFun(bar())
fun bar(): Int? = 0