jdk-24/langtools/test/tools/javac/6758789/T6758789b.java
2009-08-27 11:08:27 -07:00

19 lines
373 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6758789
* @summary 6758789: Some method resolution diagnostic should be improved
* @author Maurizio Cimadamore
*
* @compile/fail/ref=T6758789b.out -Werror -XDrawDiagnostics -Xlint:unchecked T6758789b.java
*/
class T6758789a {
class Foo<T> {}
<X> void m(Foo<X> foo) {}
void test() {
m(new Foo());
}
}