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:
Mathias Quintero
2020-06-10 16:26:42 +02:00
committed by Ilya Chernikov
parent 8cb4f59114
commit f0bc52222d
9 changed files with 237 additions and 19 deletions
@@ -0,0 +1,2 @@
@file:TestAnnotation("option")
@@ -0,0 +1,2 @@
@file:TestAnnotation()
@@ -0,0 +1,2 @@
@file:TestAnnotation(options = ["option"])
@@ -0,0 +1,2 @@
@file:TestAnnotation(options = arrayOf("option"))
@@ -0,0 +1,2 @@
@file:TestAnnotation(options = emptyArray())
@@ -0,0 +1,2 @@
@file:AnnotationWithVarArgAndArray("option", moreOptions = ["otherOption"])