diff options
Diffstat (limited to 'src/test/test4/AnnoArg.java')
-rw-r--r-- | src/test/test4/AnnoArg.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/test4/AnnoArg.java b/src/test/test4/AnnoArg.java new file mode 100644 index 00000000..0184d41e --- /dev/null +++ b/src/test/test4/AnnoArg.java @@ -0,0 +1,18 @@ +package test4; + +public class AnnoArg { + public static @interface AnnoArgAt { + Class<? extends AnnoArg.A> value(); + } + + public static class A { + int baz() { return 1; } + } + + public static class B extends A { + int baz() { return 2; } + } + + @AnnoArgAt(B.class) + public int foo(int i) { return i; } +} |