aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs151/pr124808/Test.java
blob: e0aebc012bda46b195daa027ec5d177f4fd83021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import java.util.*;

public class Test<T extends Integer> {
       Set<T> ints = new HashSet<T>();

       public Set<T> foo() {
               return ints;
       }


       public static void main(String[] args) {
               Test<Integer> t2 = new Test<Integer>();
               Set<Integer> ints2 = t2.foo();
       }
}