您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }