You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AmbiguousInterface.java 410B

1234567891011121314
  1. public class AmbiguousInterface {
  2. public static void main(String[] args) {
  3. org.aspectj.testing.Tester.check(false, "shouldn't have compiled");
  4. }
  5. }
  6. interface Outer {
  7. interface Inner extends Outer {
  8. interface Questionable {}
  9. }
  10. interface Questionable extends Inner {}
  11. }
  12. interface Another extends Outer, Outer.Questionable {
  13. interface AnotherInner extends Questionable {}
  14. }