blob: fcee839b2e943da8ac48c9a3c43c0ad9f087a7bd [file] [log] [blame]
package test11;
public class CCTest11 {
private static List<String> l; //Check the CC after <
public static void main(String[] args) {
l = new List<String>(); //Check the CC after <
l.add("Hello, world"); //Check the signature of the method provided by the CC
l.get(0).indexOf("Hello"); //Check the methods provided after the second dot. Check the type of the variable l shown after the first dot.
}
private static class List<T> {
public void add(T t) {
//nothing...
}
public T get(int index) {
return null;
}
}
}