2009-07-30 10:30:10 +01:00
|
|
|
/**
|
2009-08-27 11:08:27 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2009-07-30 10:30:10 +01:00
|
|
|
* @bug 6862608
|
|
|
|
* @summary rich diagnostic sometimes contain wrong type variable numbering
|
|
|
|
* @author mcimadamore
|
|
|
|
* @compile/fail/ref=T6862608a.out -XDrawDiagnostics -XDdiags=disambiguateTvars,where T6862608a.java
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
class T6862608a {
|
|
|
|
|
|
|
|
<T> Comparator<T> compound(Iterable<? extends Comparator<? super T>> it) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void test(List<Comparator<?>> x) {
|
|
|
|
Comparator<String> c3 = compound(x);
|
|
|
|
}
|
|
|
|
}
|