aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8016175 aoqi@0: * @summary Add bottom-up type-checking support for unambiguous method references aoqi@0: * @compile/fail/ref=MethodReference69.out -XDrawDiagnostics MethodReference69.java aoqi@0: */ aoqi@0: class MethodReference69 { aoqi@0: interface F { aoqi@0: String m(Integer x1, X x2); aoqi@0: } aoqi@0: aoqi@0: static class Foo { aoqi@0: String getNameAt(Integer i) { return ""; } aoqi@0: } aoqi@0: aoqi@0: void g(F fz) { } aoqi@0: aoqi@0: void test() { aoqi@0: g(Foo::getName); aoqi@0: } aoqi@0: }