enum class TestEnum { Foo } annotation class Ann(vararg val a: TestEnum) val foo = TestEnum.Foo var bar = TestEnum.Foo @Ann(foo, bar) fun test() {}