diff options
-rw-r--r-- | tests/bugs150/pr119570/SimpleTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs150/pr119570/SimpleTest.java b/tests/bugs150/pr119570/SimpleTest.java new file mode 100644 index 000000000..56d0d4efa --- /dev/null +++ b/tests/bugs150/pr119570/SimpleTest.java @@ -0,0 +1,26 @@ +import java.util.ArrayList; + +interface INode<P, C> { + INode<P, C> getParent(); +} + + abstract aspect NodeImpl<Parent, Child> { + declare parents : Child implements INode<Parent, Child>; + declare parents : Parent implements INode<Parent, Child>; + public final INode<Parent, Child> INode.getParent() { + return null; + } +} + +public class SimpleTest { + + public static void main(String[] args) { + Tag tag1 = new Tag(); + Tag tag2 = new Tag(); + tag1.getParent(); + } + +} +class Tag { } + +aspect X extends NodeImpl<Tag,Tag> {} |