author | phh |
Sat, 30 Nov 2019 14:33:05 -0800 | |
changeset 59330 | 5b96c12f909d |
parent 51047 | 860a3648c494 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
30718
391eff0516a6
8074502: Group 13c: golden files for tests in tools/javac/generics dir
sogoel
parents:
15717
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
15717 | 3 |
* @bug 6278587 8007464 |
10 | 4 |
* @summary Inference broken for subtypes of subtypes of F-bounded types |
5 |
* @author Peter von der Ah\u00e9 |
|
51047
860a3648c494
8028563: Remove javac support for 6/1.6 source and target values
darcy
parents:
47216
diff
changeset
|
6 |
* @compile/fail/ref=T6278587Neg.out -XDrawDiagnostics -source 7 -Xlint:-options T6278587Neg.java |
15717 | 7 |
* @compile T6278587Neg.java |
10 | 8 |
*/ |
9 |
||
10 |
public abstract class T6278587Neg { |
|
11 |
interface A<T extends A<T>> {} |
|
12 |
interface B extends A<B> {} |
|
13 |
interface C extends B {} |
|
14 |
interface D<T> {} |
|
15 |
abstract <T extends A<T>, S extends T> D<T> m(S s); |
|
16 |
{ |
|
17 |
C c = null; |
|
18 |
m(c); |
|
19 |
} |
|
20 |
} |