author | sogoel |
Fri, 29 Aug 2014 00:42:42 -0700 | |
changeset 26274 | 02a5b23ee21c |
parent 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26274
02a5b23ee21c
8055074: Group 9a: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 5007379 |
4 |
* @summary Compiler allows inheritance of multiple methods with unrelated return types |
|
5 |
* @author gafter |
|
6 |
* |
|
26274
02a5b23ee21c
8055074: Group 9a: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=BadCovar.out -XDrawDiagnostics BadCovar.java |
10 | 8 |
*/ |
9 |
||
10 |
package bad.covar; |
|
11 |
||
12 |
import java.util.*; |
|
13 |
||
14 |
interface A{ |
|
15 |
List<? extends A> f(); |
|
16 |
} |
|
17 |
||
18 |
interface B{ |
|
19 |
List<? extends B> f(); |
|
20 |
} |
|
21 |
||
22 |
abstract class C implements A, B {} // should give error |