summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/GenericMethodITD7.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/generics/itds/GenericMethodITD7.aj')
-rw-r--r--tests/java5/generics/itds/GenericMethodITD7.aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/GenericMethodITD7.aj b/tests/java5/generics/itds/GenericMethodITD7.aj
new file mode 100644
index 000000000..923f71692
--- /dev/null
+++ b/tests/java5/generics/itds/GenericMethodITD7.aj
@@ -0,0 +1,20 @@
+import java.util.*;
+
+class Base { }
+
+public class GenericMethodITD7 {
+
+ public static void main(String[] argv) {
+ List<Number> ns = new ArrayList<Number>();
+ List<Double> ds = new ArrayList<Double>();
+ new Base().simple(ns,ds); // ok, List<Number> and List<Double>
+ }
+}
+
+class Super {}
+
+class A extends Super {}
+
+aspect X {
+ <E> void Base.simple(List<E> lista,List<? extends E> listb) {}
+}