Files
Denis Zharkov 02d1ff1505 Deprecate deprecated in favor of Deprecated
GitOrigin-RevId: 8c8ca3b24c61de6d3a48c4a457a163530930d5bd
2015-09-04 18:19:31 +03:00

15 lines
269 B
Plaintext

// "Replace with 'newFun(p1, p2)'" "true"
interface I {
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
fun oldFun(p1: String, p2: String = p1)
fun newFun(p1: String, p2: String = p2)
}
fun foo(i: I) {
i.<caret>newFun(bar())
}
fun bar(): String = ""