aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base/test128/Driver.java
blob: 12d966638951446203205889839f908bd6c72750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import org.aspectj.testing.Tester;

public class Driver {
    public static void main(String[] args) { test(); }

    public static void test() {
        C c = new C();
        Tester.check(c == c.foo(), "this wasn't this");
    }
}

class C { }

aspect A {
    //introduction C {
    C C.foo() { return this; }
    //}
}