aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/QualifiedThisMatchesExactly.java
blob: d6857295598c0e7f317fddfbadce2d9123c235a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
	}
    }
}