diff options
Diffstat (limited to 'tests/base/test128/Driver.java')
-rw-r--r-- | tests/base/test128/Driver.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/base/test128/Driver.java b/tests/base/test128/Driver.java new file mode 100644 index 000000000..12d966638 --- /dev/null +++ b/tests/base/test128/Driver.java @@ -0,0 +1,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; } + //} +} + |