summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr92311.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr92311.aj')
-rw-r--r--tests/bugs150/pr92311.aj15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs150/pr92311.aj b/tests/bugs150/pr92311.aj
new file mode 100644
index 000000000..3e00b6a5f
--- /dev/null
+++ b/tests/bugs150/pr92311.aj
@@ -0,0 +1,15 @@
+class Base {
+public int x;
+}
+
+aspect ExtendBase {
+ public ExtendBase() {}
+// private int ExtendBase.x;
+ declare parents: Y extends ExtendBase;
+}
+
+class Y extends Base {
+ public void foo() {
+ System.out.println(x);
+ }
+}