diff options
Diffstat (limited to 'tests/bugs151/pr124803/Test.java')
-rw-r--r-- | tests/bugs151/pr124803/Test.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs151/pr124803/Test.java b/tests/bugs151/pr124803/Test.java new file mode 100644 index 000000000..5c4784cac --- /dev/null +++ b/tests/bugs151/pr124803/Test.java @@ -0,0 +1,19 @@ +interface Generic1<T extends Number> { + public void foo(T p); +} + + +interface Generic2<T extends Number, Y extends Number> extends Generic1<T> { + public void foo2(Y p); +} + +public class Test<Y extends Number> implements Generic2<Y,Y>{ + public void foo2(Y p) { } + public void foo(Y p) { } + + public static void main(String []argv) { + Test<Integer> t = new Test<Integer>(); + t.foo(7); + t.foo2(9); + } +} |