[SLC] add test on enum entry annotations

^KT-56046
This commit is contained in:
Dmitrii Gridin
2023-01-27 16:33:20 +01:00
committed by Space Team
parent 83ce04b79f
commit 59f07c2197
5 changed files with 119 additions and 0 deletions
@@ -0,0 +1,29 @@
package two
@Target(AnnotationTarget.PROPERTY)
annotation class PropertyExplicitly
@Target(AnnotationTarget.PROPERTY)
annotation class PropertyImplicitly
@Target(AnnotationTarget.FIELD)
annotation class FieldExplicitly
@Target(AnnotationTarget.FIELD)
annotation class FieldImplicitly
enum class AnnotationsOnEnumEntry(i: Int = 1) {
@PropertyImplicitly
@property:PropertyExplicitly
@FieldImplicitly
@field:FieldExplicitly
EntryWithoutConstructor,
@PropertyImplicitly
@FieldImplicitly
EntryWithConstructor(5),
EntryWithConstructor2(6);
fun foo() = Unit
}