VERY rough implementation of annotations with parameters in ReplaceWIth pattern
This commit is contained in:
+10
@@ -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 {}
|
||||
Reference in New Issue
Block a user