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,12 @@
// "Replace with 'newFun(p, this)'" "true"
@deprecated("", ReplaceWith("newFun(p, this)"))
fun String.oldFun(p: Int) {
newFun(p, this)
}
fun newFun(p: Int, s: String){}
fun foo() {
<caret>newFun(1, "")
}