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

13 lines
385 B
Kotlin
Vendored

// "Replace with 'newFun(option1, option2, option3, null)'" "true"
interface I {
@Deprecated("", ReplaceWith("newFun(option1, option2, option3, null)"))
fun oldFun(option1: String = "", option2: Int = 0, option3: Int = -1)
fun newFun(option1: String = "", option2: Int = 0, option3: Int = -1, option4: String? = "x")
}
fun foo(i: I) {
i.<caret>oldFun(option2 = 1)
}