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

13 lines
313 B
Kotlin
Vendored

// "Replace with 'newFun(p1, p2, null, option)'" "true"
interface I {
@Deprecated("", ReplaceWith("newFun(p1, p2, null, option)"))
fun oldFun(p1: String, p2: Int, option: Int = 1)
fun newFun(p1: String, p2New: Int, p3: String?, option: Int = 2)
}
fun foo(i: I) {
i.<caret>oldFun("a", p2 = 0)
}