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

14 lines
241 B
Kotlin
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 {
var v = 0
return <caret>oldFun(v++)
}