org.aspectj/tests/new/PR569/a/IntroAnon.java
2002-12-16 18:51:06 +00:00

23 lines
497 B
Java

package a;
import org.aspectj.testing.Tester;
import b.Dest;
/** @testcase PR#569 anon class written to wrong directory */
public class IntroAnon {
private static aspect MI {
public Object MyInterface.foo () {
Tester.event("foo ran");
return new Object(){};
}
}
public static void main (String args []) {
Tester.expectEvent("foo ran");
new Dest ().foo ();
Tester.checkAllEvents();
}
} // end of class IntroAnon