2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 09:30:55 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2013-02-12 19:25:09 +00:00
|
|
|
* @bug 6278587 8007464
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary Inference broken for subtypes of subtypes of F-bounded types
|
|
|
|
* @author Peter von der Ah\u00e9
|
2015-05-15 09:30:55 -07:00
|
|
|
* @compile/fail/ref=T6278587Neg.out -XDrawDiagnostics -source 7 T6278587Neg.java
|
2013-02-12 19:25:09 +00:00
|
|
|
* @compile T6278587Neg.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public abstract class T6278587Neg {
|
|
|
|
interface A<T extends A<T>> {}
|
|
|
|
interface B extends A<B> {}
|
|
|
|
interface C extends B {}
|
|
|
|
interface D<T> {}
|
|
|
|
abstract <T extends A<T>, S extends T> D<T> m(S s);
|
|
|
|
{
|
|
|
|
C c = null;
|
|
|
|
m(c);
|
|
|
|
}
|
|
|
|
}
|