summaryrefslogtreecommitdiffstats
path: root/tests/bugs151/pr124803/Test.java
blob: 5c4784cac148871ca4692bc5b59600c16636f7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
  }
}