"Remove argument name" intention: remove array literal brackets for annotation vararg argument

#KT-32318 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-04 22:17:14 +09:00
committed by Dmitry Gridin
parent d33d1913cb
commit 9786564d75
6 changed files with 56 additions and 11 deletions
@@ -0,0 +1,6 @@
annotation class AnnWithArray(val value: Array<String>)
interface Result {
@AnnWithArray(<caret>value = ["foo", "bar"])
val res1: Any
}
@@ -0,0 +1,6 @@
annotation class AnnWithArray(val value: Array<String>)
interface Result {
@AnnWithArray(<caret>["foo", "bar"])
val res1: Any
}
@@ -0,0 +1,6 @@
annotation class AnnWithVararg(vararg val value: String, val s: String)
interface Result {
@AnnWithVararg(<caret>value = ["foo", "bar"], s = "")
val res2: Any
}
@@ -0,0 +1,6 @@
annotation class AnnWithVararg(vararg val value: String, val s: String)
interface Result {
@AnnWithVararg(<caret>"foo", "bar", s = "")
val res2: Any
}