1 /*
2  * @test /nodynamiccopyright/
3  * @bug 4041948
4  * @summary javac previously allowed interfaces to inherit methods with
5  *          inconsistent signatures.
6  * @author turnidge
7  *
8  * @compile/fail/ref=InconsistentInheritedSignature.out -XDrawDiagnostics InconsistentInheritedSignature.java
9  */
10 interface I1{
f()11   int f();
12 }
13 interface I2 {
f()14   void f() ;
15 }
16 // error: Return types conflict.
17 interface InconsistentInheritedSignature extends I1,I2 { }
18