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.

InnerNameConflictsCf.java 434B

123456789101112131415161718192021222324
  1. /**
  2. * PR#538
  3. * Would be useful to add a Cp version
  4. */
  5. public class InnerNameConflictsCf {
  6. class Inner {}
  7. public static void main(String[] args) {
  8. new Inner(); //ERR: no this
  9. }
  10. }
  11. class Base {
  12. static class Base {} //ERR: repeated name
  13. }
  14. class Outer {
  15. class Inner {
  16. class Inner2 {
  17. class Outer {} //ERR: repeated name
  18. class Inner {} //ERR: repeated name
  19. }
  20. }
  21. }