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,10 @@
// "Replace with 'test.Bar(p, "")'" "true"
package test
@Deprecated("Replace with bar", ReplaceWith("test.Bar(p, \"\")"))
annotation class Foo(val p: Int)
annotation class Bar(val p: Int, val s: String)
@Bar(1, "") class C {}