aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/AmbiguousClassReference3CE.java
blob: 35c5f95ff28dc1822952af5d74d0e8c1926f029a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class AmbiguousClassReference3CE {

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