/* * @test /nodynamiccopyright/ * @bug 8144767 * @summary Correct most-specific test when wildcards appear in functional interface type * @compile/fail/ref=MostSpecific30.out -XDrawDiagnostics MostSpecific30.java */ class MostSpecific30 { interface Pred { boolean test(T arg); } interface Fun { R apply(T arg); } static void m1(Pred f) {} static void m1(Fun f) {} void test() { m1((Integer n) -> true); } }