mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
13 lines
276 B
Kotlin
Vendored
13 lines
276 B
Kotlin
Vendored
// "Replace with 'newFun(p1, p2)'" "true"
|
|
|
|
interface I {
|
|
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
|
fun oldFun(p1: String, p2: () -> Boolean)
|
|
|
|
fun newFun(p1: String, p2: () -> Boolean, p3: String? = null)
|
|
}
|
|
|
|
fun foo(i: I) {
|
|
i.<caret>oldFun("a") { true }
|
|
}
|