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:
+12
@@ -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
|
||||
Reference in New Issue
Block a user