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.

AmbiguousClassReference3CE.java 429B

1234567891011121314
  1. public class AmbiguousClassReference3CE {
  2. /** @testcase PR#701 PUREJAVA CE for ambiguous type reference (two type declarations)
  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. }
  8. class Foo {} // expect: "duplicate type name"
  9. interface Foo {} // expect: "duplicate type name"
  10. class Bar {
  11. Foo f;
  12. }