diff options
author | aclement <aclement> | 2006-05-22 10:03:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-22 10:03:43 +0000 |
commit | 0e6530f173f186e1668043abeb08df51b593c9de (patch) | |
tree | 589f226c45f8fa3b8bd6cd810860169c826f32fc /tests/bugs152/pr128443/Bug.java | |
parent | 054eb78c6697e95d28b36b6bb966068fc1f0d5c6 (diff) | |
download | aspectj-0e6530f173f186e1668043abeb08df51b593c9de.tar.gz aspectj-0e6530f173f186e1668043abeb08df51b593c9de.zip |
test for 128443
Diffstat (limited to 'tests/bugs152/pr128443/Bug.java')
-rw-r--r-- | tests/bugs152/pr128443/Bug.java | 23 |
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(); + } +} |