Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice5Runtime.kt.after
T
2020-06-29 07:55:20 +00:00

19 lines
324 B
Plaintext
Vendored

// "Replace with 'newFun(p, p)'" "true"
// WITH_RUNTIME
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() {
val p = bar<String>()
<caret>newFun(p, p)
}
fun <T> bar(): List<T> = ArrayList()