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

18 lines
353 B
Kotlin
Vendored

// "Replace with 'newFun(p1, p2, p3)'" "true"
interface I {
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
fun oldFun(p1: String, p2: Int = 0, p3: Int = 1)
fun newFun(p1: String, p2: Int = 1, p3: Int = 1)
}
abstract class C : I {
override fun newFun(p1: String, p2: Int, p3: Int) { }
}
fun foo(c: C) {
c.<caret>oldFun("")
}