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)'" "true"
interface I
@deprecated("", ReplaceWith("newFun(p)"))
fun I.plus(p: Int) {
newFun(p)
}
fun I.newFun(p: Int){}
fun foo(i: I) {
i <caret>+ 1
}