1
0
Mirror von https://github.com/eclipse-aspectj/aspectj.git synchronisiert 2024-07-25 22:34:45 +02:00
org.aspectj/tests/new/CyclicInterfaceInheritance.java

16 Zeilen
466 B
Java

2002-12-16 19:51:06 +01:00
/** @testcase PR#567 no error for cyclic interface inheritance if no classes implement the interfaces */
public class CyclicInterfaceInheritance {
public static void main( String args[] ) {
throw new Error("not to be run - error case ");
}
}
// no bug if any class implements the interfaces
class C {
void a() { }
void b() { }
}
interface A extends B { void a(); } //ERR: A <- B <- A
interface B extends A { void b(); } //ERR: B <- A <- B