Files
kotlin/idea/testData/quickfix/deprecatedSymbolUsage/keepComments/variableForArgument.kt
2015-09-04 18:19:31 +03:00

15 lines
231 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()/*use bar()*/)
}
fun bar(): Int = 0