mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test++, compilation fixed again
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class List <T> {}
|
||||
|
||||
class A<T> {
|
||||
public List<? extends T> method1() {
|
||||
return null;
|
||||
}
|
||||
public T method2(T t) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+11
@@ -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);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class List <T> {}
|
||||
|
||||
class A<T> {
|
||||
public List<? extends T> method1() {
|
||||
return null;
|
||||
}
|
||||
public T method2(T t) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
class B extends A<String> {
|
||||
}
|
||||
Reference in New Issue
Block a user