aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr118698.aj23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs150/pr118698.aj b/tests/bugs150/pr118698.aj
new file mode 100644
index 000000000..198f8da2c
--- /dev/null
+++ b/tests/bugs150/pr118698.aj
@@ -0,0 +1,23 @@
+public aspect pr118698 {
+ private static interface Marker {}
+
+ private class Foo implements Marker {
+ public Foo() {
+ bar = null; // allowed
+ listener = null; // should also be allowed
+ this.listener = null; // so should this
+ ((Marker)this).listener = null; // and this
+ }
+ }
+
+ public static void main(String []argv) {
+ pr118698.aspectOf().x();
+ }
+
+ public void x() {
+ new Foo();
+ }
+
+ private Object Marker.listener;
+ private Object bar;
+}