jdk-24/langtools/test/tools/javac/Diagnostics/6722234/T6722234b.java
2009-08-27 11:08:27 -07:00

19 lines
507 B
Java

/**
* @test /nodynamiccopyright/
* @bug 6722234
* @summary javac diagnostics need better integration with the type-system
* @author mcimadamore
* @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -XDdiags=simpleNames T6722234b.java
* @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -XDdiags=simpleNames,where T6722234b.java
*/
import java.util.*;
class T6722234b {
<T> void m(List<T> l1, List<T> l2) {}
void test(List<? extends T6722234b> list) {
m(list, list);
}
}