diff options
Diffstat (limited to 'tests/bugs160/pr214559/X.java')
-rw-r--r-- | tests/bugs160/pr214559/X.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs160/pr214559/X.java b/tests/bugs160/pr214559/X.java new file mode 100644 index 000000000..7f2861b53 --- /dev/null +++ b/tests/bugs160/pr214559/X.java @@ -0,0 +1,23 @@ + +package test; + +public class X { + public static void main(String[]argv) { + TestClass t = new TestClass(); + if (!(t instanceof Interface1)) throw new RuntimeException("t not instanceof Interface1"); + if (!(t instanceof Interface1TestClass)) throw new RuntimeException("t not instanceof Interface1TestClass"); + } +} + +interface Interface1 {} + +interface Interface1TestClass {} + +aspect TestAspect { + declare parents: + TestClass implements Interface1; + + declare parents: + TestClass && Interface1+ implements Interface1TestClass; +} +class TestClass {} |