/* * @test * @bug 8170410 * @summary inference: javac doesn't implement 18.2.5 correctly * @compile T8170410.java */ class T8170410 { interface CheckedSupplier { R get() throws T; } static CheckedSupplier checked(CheckedSupplier checkedSupplier) { return checkedSupplier; } static void test() { checked(() -> null).get(); checked(T8170410::m).get(); } static String m() { return ""; } }