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

15 lines
218 B
Kotlin
Vendored

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