Replace with: do not remove annotation use-site targets

This commit is contained in:
Toshiaki Kameyama
2020-03-08 22:59:46 +09:00
committed by Dmitry Gridin
parent f573719cc1
commit 06bd620dd6
14 changed files with 136 additions and 1 deletions
@@ -0,0 +1,12 @@
// "Replace with 'Bar()'" "true"
class Test {
@get:<caret>Foo
val s: String = ""
}
@Deprecated("Replace with Bar", ReplaceWith("Bar()"))
@Target(AnnotationTarget.PROPERTY_GETTER)
annotation class Foo
@Target(AnnotationTarget.PROPERTY_GETTER)
annotation class Bar