Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

CircularPlusImplementsIntros.java 370B

1234567891011121314151617181920
  1. public class CircularPlusImplementsIntros {
  2. public static void main(String[] args) {
  3. org.aspectj.testing.Tester.check(false, "shouldn't have compiled!");
  4. }
  5. }
  6. interface I {}
  7. interface J {}
  8. class C {
  9. {
  10. I i = new I() {};
  11. J j = new J() {};
  12. }
  13. }
  14. aspect A {
  15. declare parents: I implements J;
  16. declare parents: J implements I;
  17. }