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