Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/stringTemplateUsedTwice2.kt.after
T
2015-09-04 18:19:31 +03:00

16 lines
268 B
Plaintext
Vendored

// "Replace with 'newFun(p, p)'" "true"
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
fun newFun(p1: String, p2: String){}
fun foo(p: Int) {
val p1 = "${p.bar()}"
<caret>newFun(p1, p1)
}
fun Int.bar(): String = ""