blob: b7c7da9bf7a25b0d1e5f81c3871cb9a180ed23da [file]
package pkg;
import java.lang.annotation.*;
class TestMemberAnnotations {
@Retention(RetentionPolicy.RUNTIME)
@interface A { String value() default ""; }
@A("const") public static final int CONST = 42;
@A("field") private int f;
@A("return") private int f(@A("arg") int i) { return i + f + CONST; }
}