This commit is contained in:
Dmitry Jemerov
2009-09-10 21:08:51 +04:00
parent 0e77a58da0
commit 5c49d4d458
90 changed files with 6 additions and 0 deletions
@@ -0,0 +1,19 @@
import p.Test;
class Usage {
Test<String> myField;
Test<String> xxx(){
return myField;
}
Test<Integer> xxxxx() {
return null;
}
void bar(Test<String> s) {
s.foo(null);
}
}
@@ -0,0 +1,7 @@
package p;
public class Test<R> {
public void foo(R t) {
System.out.println("Hello");
}
}
@@ -0,0 +1,18 @@
import p1.*;
class Usage {
Super<String> myField;
Super<String> xxx(){
return myField;
}
Super<Integer> xxxxx() {
return null;
}
void bar(Super<String> s) {
s.foo(null);
}
}
@@ -0,0 +1,3 @@
package p;
import p1.*;
public class Test<R> extends Super<R> {}
@@ -0,0 +1,6 @@
package p1;
public class Super<T>{
public void foo(T t) {
System.out.println("Hello");
}
}