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

17 lines
283 B
Kotlin

// "Replace with 'newFun(p, p)'" "true"
import java.util.*
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: List<String>) {
newFun(p, p)
}
fun newFun(p1: List<String>, p2: List<String>){}
fun foo() {
<caret>oldFun(bar())
}
fun <T> bar(): List<T> = ArrayList()