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