diff options
Diffstat (limited to 'tests/java5')
-rw-r--r-- | tests/java5/generics/itds/design/DesignA.java | 6 | ||||
-rw-r--r-- | tests/java5/generics/itds/design/DesignB.java | 12 | ||||
-rw-r--r-- | tests/java5/generics/itds/design/DesignC.java | 10 |
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/design/DesignA.java b/tests/java5/generics/itds/design/DesignA.java new file mode 100644 index 000000000..9d7b4056b --- /dev/null +++ b/tests/java5/generics/itds/design/DesignA.java @@ -0,0 +1,6 @@ +class C { +} + +aspect X { + <T> void C.m(T t) {} +} diff --git a/tests/java5/generics/itds/design/DesignB.java b/tests/java5/generics/itds/design/DesignB.java new file mode 100644 index 000000000..5b86a11c3 --- /dev/null +++ b/tests/java5/generics/itds/design/DesignB.java @@ -0,0 +1,12 @@ +class C {} + +interface I {} + +aspect X { + + <T extends Number> void C.m0(T t) {} // L7 + + <Q extends I> void C.m1(Q q) {} // L9 + + <R extends Number,I> void C.m2(R r) {} // L11 +} diff --git a/tests/java5/generics/itds/design/DesignC.java b/tests/java5/generics/itds/design/DesignC.java new file mode 100644 index 000000000..8e25e9f56 --- /dev/null +++ b/tests/java5/generics/itds/design/DesignC.java @@ -0,0 +1,10 @@ +class C {} + +interface I {} + +aspect X { + + <T extends Number,Q extends I> void C.m0(T t,Q q) {} // L7 + + <A,B,C> List<A> C.m1(B b,Collection<C> cs) {} // L9 +} |