aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/QualifiedThisMatchesExactly.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pureJava/QualifiedThisMatchesExactly.java')
-rw-r--r--tests/pureJava/QualifiedThisMatchesExactly.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/pureJava/QualifiedThisMatchesExactly.java b/tests/pureJava/QualifiedThisMatchesExactly.java
new file mode 100644
index 000000000..d68572955
--- /dev/null
+++ b/tests/pureJava/QualifiedThisMatchesExactly.java
@@ -0,0 +1,20 @@
+public class QualifiedThisMatchesExactly {
+ public static void main(String[] args) {
+ System.err.println("shouldn't compile!!!");
+ }
+}
+
+class A {
+ class B {}
+}
+
+class C extends A {
+ static class D extends B {
+ D() {
+ super();
+ }
+ void foo() {
+ System.err.println(D.this);
+ }
+ }
+}