Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice3Runtime.kt
T
2015-09-04 18:19:31 +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++)
}