[SLC] add test on enum entry annotations
^KT-56046
This commit is contained in:
committed by
Space Team
parent
83ce04b79f
commit
59f07c2197
+29
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user