DeprecatedSymbolUsageFix - dealing with infix and operator calls

This commit is contained in:
Valentin Kipyatkov
2015-05-19 19:06:12 +03:00
parent 33caa7ad36
commit 08cfca56f8
10 changed files with 180 additions and 29 deletions
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p, this)'" "true"
interface I
@deprecated("", ReplaceWith("newFun(p, this)"))
fun I.plus(p: Int) {
newFun(p, this)
}
fun newFun(p: Int, i: I) { }
fun foo(i: I) {
i <caret>+ 1
}