test++, compilation fixed again

This commit is contained in:
Dmitry Jemerov
2009-09-10 20:48:45 +04:00
parent f9dbab8f6d
commit 58fee2c041
114 changed files with 17 additions and 12 deletions
@@ -0,0 +1,10 @@
class List <T> {}
class A<T> {
public List<? extends T> method1() {
return null;
}
public T method2(T t) {
return null;
}
}
@@ -0,0 +1,11 @@
class B {
public final A<String> myDelegate = new A<String>();
public List<? extends String> method1() {
return myDelegate.method1();
}
public String method2(String s) {
return myDelegate.method2(s);
}
}
@@ -0,0 +1,10 @@
class List <T> {}
class A<T> {
public List<? extends T> method1() {
return null;
}
public T method2(T t) {
return null;
}
}
@@ -0,0 +1,2 @@
class B extends A<String> {
}