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.

AmbiguousClassReference4CE.java 413B

123456789101112
  1. public class AmbiguousClassReference4CE {
  2. /** @testcase PR#701 PUREJAVA CE for ambiguous type reference (two inner types)
  3. * see also testcase PR#631 */
  4. public static void main(String[] args) {
  5. throw new Error("Expecting compiler error, not compile/run");
  6. }
  7. static class Foo {} // CE: "duplicate type name"
  8. static interface Foo {} // CE: "duplicate type name"
  9. }