Uast: property resolve arrayOf in nested annotations (KT-29434)

This commit is contained in:
Nicolay Mitropolsky
2019-01-23 21:25:40 +03:00
committed by xiexed
parent 4ffeff5e6c
commit a3ea7bcd3b
7 changed files with 129 additions and 14 deletions
+7 -4
View File
@@ -1,4 +1,4 @@
annotation class Annotation
annotation class Annotation(vararg val strings: String)
@Annotation
class A
@@ -8,10 +8,13 @@ annotation class AnnotationInner(val value: Annotation)
@AnnotationArray(Annotation())
class B1
@AnnotationArray(value = Annotation())
@AnnotationArray(value = Annotation("sv1", "sv2"))
class B2
annotation class AnnotationArray(vararg val value: Annotation)
@AnnotationArray(Annotation())
class C
@AnnotationArray(Annotation(strings = arrayOf("sar1", "sar2")))
class C
@AnnotationArray(Annotation(strings = ["[sar]1", "[sar]2"]))
class C2