aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr128443/Bug.java
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-22 10:03:43 +0000
committeraclement <aclement>2006-05-22 10:03:43 +0000
commit0e6530f173f186e1668043abeb08df51b593c9de (patch)
tree589f226c45f8fa3b8bd6cd810860169c826f32fc /tests/bugs152/pr128443/Bug.java
parent054eb78c6697e95d28b36b6bb966068fc1f0d5c6 (diff)
downloadaspectj-0e6530f173f186e1668043abeb08df51b593c9de.tar.gz
aspectj-0e6530f173f186e1668043abeb08df51b593c9de.zip
test for 128443
Diffstat (limited to 'tests/bugs152/pr128443/Bug.java')
-rw-r--r--tests/bugs152/pr128443/Bug.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs152/pr128443/Bug.java b/tests/bugs152/pr128443/Bug.java
new file mode 100644
index 000000000..afc95c46f
--- /dev/null
+++ b/tests/bugs152/pr128443/Bug.java
@@ -0,0 +1,23 @@
+
+
+interface Result {}
+
+interface Factory {
+ Result getInstance();
+}
+
+class B {}
+
+class D implements Factory {}
+
+aspect EnsureBImplementsResult {
+
+ // bug: this should work
+ declare parents: B implements Result;
+
+
+ // bug: get error here wrt invalid return type
+ public B D.getInstance() {
+ return new B();
+ }
+}