DeprecatedSymbolUsageFix preserves comments

This commit is contained in:
Valentin Kipyatkov
2015-05-26 14:14:20 +03:00
parent fefa12b0a9
commit d3403dee1a
17 changed files with 342 additions and 73 deletions
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p4, p3, p2, p1, p0)'" "true"
@deprecated("", ReplaceWith("newFun(p4, p3, p2, p1, p0)"))
fun oldFun(p0: Int, p1: Int, p2: Int, p3: Int, p4: Int){}
fun newFun(p4: Int, p3: Int, p2: Int, p1: Int, p0: Int){}
fun foo() {
<caret>oldFun(/* 0 */ 0,
/* 1 */ 1,
2, // 2
3, /* 4 */ 4)
}