diff options
author | aclement <aclement> | 2005-09-28 09:49:10 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-09-28 09:49:10 +0000 |
commit | fc51daa12dd7952e3b6a2f486e7d0162323c91b4 (patch) | |
tree | a4d4aa5bc9680b9db22625aa52463bf14977c2cd /tests/bugs150/pr110788 | |
parent | c7e275bbe8e0ee178ce28c5cc2d12bc5338d76a3 (diff) | |
download | aspectj-fc51daa12dd7952e3b6a2f486e7d0162323c91b4.tar.gz aspectj-fc51daa12dd7952e3b6a2f486e7d0162323c91b4.zip |
pr110788: testcases
Diffstat (limited to 'tests/bugs150/pr110788')
-rw-r--r-- | tests/bugs150/pr110788/Case1.java | 11 | ||||
-rw-r--r-- | tests/bugs150/pr110788/Case2.java | 9 | ||||
-rw-r--r-- | tests/bugs150/pr110788/Case3.java | 11 | ||||
-rw-r--r-- | tests/bugs150/pr110788/Case4.java | 11 |
4 files changed, 42 insertions, 0 deletions
diff --git a/tests/bugs150/pr110788/Case1.java b/tests/bugs150/pr110788/Case1.java new file mode 100644 index 000000000..f5a55d2df --- /dev/null +++ b/tests/bugs150/pr110788/Case1.java @@ -0,0 +1,11 @@ +interface A<T> {} + +interface B<T> extends A<T> {} + +class C implements A<String> {} + +class D extends C {} + +aspect X { + declare parents: D implements B<Number>; // Can't do it, C implement A<String> +} diff --git a/tests/bugs150/pr110788/Case2.java b/tests/bugs150/pr110788/Case2.java new file mode 100644 index 000000000..d995509bb --- /dev/null +++ b/tests/bugs150/pr110788/Case2.java @@ -0,0 +1,9 @@ +interface A<T> {} + +class C implements A<String> {} + +class D extends C {} + +aspect X { + declare parents: D implements A<Number>; // Can't do it, C implements A<String> +} diff --git a/tests/bugs150/pr110788/Case3.java b/tests/bugs150/pr110788/Case3.java new file mode 100644 index 000000000..726ca11cf --- /dev/null +++ b/tests/bugs150/pr110788/Case3.java @@ -0,0 +1,11 @@ +interface A<T> {} + +interface B<T> extends A<T> {} + +class C implements A<String> {} + +class D extends C {} + +aspect X { + declare parents: D implements B<String>; // Can do it, parameterizations are compatible +} diff --git a/tests/bugs150/pr110788/Case4.java b/tests/bugs150/pr110788/Case4.java new file mode 100644 index 000000000..726ca11cf --- /dev/null +++ b/tests/bugs150/pr110788/Case4.java @@ -0,0 +1,11 @@ +interface A<T> {} + +interface B<T> extends A<T> {} + +class C implements A<String> {} + +class D extends C {} + +aspect X { + declare parents: D implements B<String>; // Can do it, parameterizations are compatible +} |