[tests] test cases added
This commit is contained in:
13
testData/src/pkg/TestMemberAnnotations.java
Normal file
13
testData/src/pkg/TestMemberAnnotations.java
Normal file
@@ -0,0 +1,13 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user