aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6638712 aoqi@0: * @author mcimadamore aoqi@0: * @summary Inference with wildcard types causes selection of inapplicable method aoqi@0: * @compile/fail/ref=T6638712b.out -XDrawDiagnostics T6638712b.java aoqi@0: */ aoqi@0: aoqi@0: class T6638712b { aoqi@0: aoqi@0: , T> T m(I test) { return null; } aoqi@0: aoqi@0: void test(T6638712b x) { aoqi@0: String i = m(x); aoqi@0: } aoqi@0: }