[SLC] add test on enum entry annotations
^KT-56046
This commit is contained in:
committed by
Space Team
parent
83ce04b79f
commit
59f07c2197
+39
@@ -0,0 +1,39 @@
|
||||
public enum AnnotationsOnEnumEntry /* two.AnnotationsOnEnumEntry*/ {
|
||||
@two.PropertyImplicitly() @two.FieldImplicitly() @two.FieldExplicitly() EntryWithoutConstructor,
|
||||
@two.PropertyImplicitly() @two.FieldImplicitly() EntryWithConstructor,
|
||||
EntryWithConstructor2;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static two.AnnotationsOnEnumEntry valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static two.AnnotationsOnEnumEntry[] values();// values()
|
||||
|
||||
private AnnotationsOnEnumEntry(int);// .ctor(int)
|
||||
|
||||
public final void foo();// foo()
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.FIELD})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.FIELD})
|
||||
public abstract @interface FieldExplicitly /* two.FieldExplicitly*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.FIELD})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.FIELD})
|
||||
public abstract @interface FieldImplicitly /* two.FieldImplicitly*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.PROPERTY})
|
||||
public abstract @interface PropertyExplicitly /* two.PropertyExplicitly*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.PROPERTY})
|
||||
public abstract @interface PropertyImplicitly /* two.PropertyImplicitly*/ {
|
||||
}
|
||||
+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
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
public enum AnnotationsOnEnumEntry /* two.AnnotationsOnEnumEntry*/ {
|
||||
@two.PropertyImplicitly() @two.PropertyExplicitly() @two.FieldImplicitly() @two.FieldExplicitly() EntryWithoutConstructor,
|
||||
@two.PropertyImplicitly() @two.FieldImplicitly() EntryWithConstructor,
|
||||
EntryWithConstructor2;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static two.AnnotationsOnEnumEntry valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static two.AnnotationsOnEnumEntry[] values();// values()
|
||||
|
||||
private AnnotationsOnEnumEntry(int);// .ctor(int)
|
||||
|
||||
public final void foo();// foo()
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.FIELD})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.FIELD})
|
||||
public abstract @interface FieldExplicitly /* two.FieldExplicitly*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.FIELD})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.FIELD})
|
||||
public abstract @interface FieldImplicitly /* two.FieldImplicitly*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.PROPERTY})
|
||||
public abstract @interface PropertyExplicitly /* two.PropertyExplicitly*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.PROPERTY})
|
||||
public abstract @interface PropertyImplicitly /* two.PropertyImplicitly*/ {
|
||||
}
|
||||
Reference in New Issue
Block a user