mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
15 lines
429 B
Java
15 lines
429 B
Java
|
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;
|
||
|
}
|
||
|
|