summaryrefslogtreecommitdiffstats
path: root/tests/new/AmbiguousClassReference4CE.java
blob: f37f5155dba1562aee4e2cc40ad19c77022d3332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
public class AmbiguousClassReference4CE {

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