[tests] test cases added

This commit is contained in:
Roman Shevchenko
2016-03-04 15:32:42 +01:00
parent cfe1448b2b
commit 5795c1d9e0
5 changed files with 48 additions and 0 deletions

View 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; }
}