Preserve annotation arguments in "Add use-site target" intention

So #KT-23634 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-04-06 05:04:26 +03:00
committed by Mikhail Glukhikh
parent a5aad22fe7
commit 1cbaab1531
4 changed files with 23 additions and 1 deletions
@@ -0,0 +1,8 @@
// CHOOSE_USE_SITE_TARGET: field
annotation class A(val s: String)
class Test {
@A("...")<caret>
val foo: String = ""
}
@@ -0,0 +1,8 @@
// CHOOSE_USE_SITE_TARGET: field
annotation class A(val s: String)
class Test {
@field:A("...")
val foo: String = ""
}