Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
15 lines
396 B
Java
15 lines
396 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 6862608
|
|
* @summary rich diagnostic sometimes contain wrong type variable numbering
|
|
* @author mcimadamore
|
|
* @compile/fail/ref=T6862608b.out -XDrawDiagnostics --diags=formatterOptions=disambiguateTvars,where T6862608b.java
|
|
*/
|
|
|
|
class T66862608b<T extends String, S> {
|
|
<S, T extends S> void foo(T t) {
|
|
test(t);
|
|
}
|
|
|
|
void test(T t) {}
|
|
}
|