author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 18910 | langtools/test/tools/javac/lambda/MethodReference72.java@c967bfda9283 |
child 47316 | 1129253d3bc7 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 8016175 * @summary Add bottom-up type-checking support for unambiguous method references * @compile/fail/ref=MethodReference72.out -XDrawDiagnostics MethodReference72.java */ class MethodReference72 { interface F<X> { @SuppressWarnings("unchecked") void m(X... x); } void m1(Integer i) { } <Z> void g(F<Z> f) { } void test() { g(this::m1); //? } }