mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
Annotation in NestedEnumArgument test is made public, because we try to load annotation argument values eagerly and fail, since you can't invoke methods reflectively on an object of a non-effectively-public class
15 lines
184 B
Java
Vendored
15 lines
184 B
Java
Vendored
package test;
|
|
|
|
public class NestedEnumArgument {
|
|
public enum E {
|
|
FIRST
|
|
}
|
|
|
|
public @interface Anno {
|
|
E value();
|
|
}
|
|
|
|
@Anno(E.FIRST)
|
|
void foo() {}
|
|
}
|