Fix annotation construction with array literals
Turns out the issue happens to be that ArrayValue uses a list of values which needs to be translated to an array of the percise type before it is used by callBy This also addresses handling of arguments after a vararg in an annotation
This commit is contained in:
committed by
Ilya Chernikov
parent
8cb4f59114
commit
f0bc52222d
plugins/scripting/scripting-compiler/testData/compiler/constructAnnotations/SimpleTestAnnotation.kts
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
@file:TestAnnotation("option")
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
@file:TestAnnotation()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
@file:TestAnnotation(options = ["option"])
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
@file:TestAnnotation(options = arrayOf("option"))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
@file:TestAnnotation(options = emptyArray())
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
@file:AnnotationWithVarArgAndArray("option", moreOptions = ["otherOption"])
|
||||
Reference in New Issue
Block a user