diff options
Diffstat (limited to 'tests/bugs152/pr137568')
-rw-r--r-- | tests/bugs152/pr137568/C.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs152/pr137568/C.java b/tests/bugs152/pr137568/C.java new file mode 100644 index 000000000..41341522a --- /dev/null +++ b/tests/bugs152/pr137568/C.java @@ -0,0 +1,19 @@ +interface IGuard<P> {} + +interface Guard<P> extends IGuard<P> {} + +class GuardImpl implements Guard<String> {} + +public class C<T> { + + private boolean m1(Class<? extends IGuard<T>> guardClz) throws Exception { return false;} + private boolean m2(Class<? extends IGuard<T>>[] guardClz) throws Exception { return false;} + + public static void main(String []argv) throws Exception { + GuardImpl g = new GuardImpl(); + C<String> newC = new C<String>(); + newC.m1(g.getClass()); + newC.m2(new Class[]{g.getClass()}); + } + +}
\ No newline at end of file |