VERY rough implementation of annotations with parameters in ReplaceWIth pattern

This commit is contained in:
Valentin Kipyatkov
2015-10-09 22:24:14 +03:00
parent c8c3e88c82
commit 4290601807
11 changed files with 186 additions and 54 deletions
@@ -0,0 +1,11 @@
// "Replace with 'NewClass(p + 1)'" "true"
package ppp
@Deprecated("", ReplaceWith("NewClass(p + 1)"))
class OldClass(p: Int)
class NewClass(p: Int)
fun foo() {
<caret>OldClass(1)
}