jdk-24/test/langtools/tools/javac/Diagnostics/6862608/T6862608b.java
2018-04-03 23:58:52 -04:00

16 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) {}
}