Support annotations as annotation arguments in reflection, add test

A follow-up to 281acb8 where this was supported in the compiler
This commit is contained in:
Alexander Udalov
2015-05-28 22:04:53 +03:00
parent 158b3ba102
commit d1df234cfe
7 changed files with 82 additions and 8 deletions
@@ -0,0 +1,12 @@
// ALLOW_AST_ACCESS
package test
enum class E { ENTRY }
annotation class StringOptions(vararg val option: String)
annotation class EnumOption(val option: E)
annotation class OptionGroups(val o1: StringOptions, val o2: EnumOption)
OptionGroups(StringOptions("abc", "d", "ef"), EnumOption(E.ENTRY))
public class AnnotationInAnnotationArguments