mcimadamore@1581: /* mcimadamore@1581: * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. mcimadamore@1581: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@1581: * mcimadamore@1581: * This code is free software; you can redistribute it and/or modify it mcimadamore@1581: * under the terms of the GNU General Public License version 2 only, as mcimadamore@1581: * published by the Free Software Foundation. mcimadamore@1581: * mcimadamore@1581: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@1581: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@1581: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@1581: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@1581: * accompanied this code). mcimadamore@1581: * mcimadamore@1581: * You should have received a copy of the GNU General Public License version mcimadamore@1581: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@1581: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@1581: * mcimadamore@1581: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA mcimadamore@1581: * or visit www.oracle.com if you need additional information or have any mcimadamore@1581: * questions. mcimadamore@1581: */ mcimadamore@1581: mcimadamore@1581: // key: compiler.err.cant.apply.symbol mcimadamore@1581: // key: compiler.misc.infer.no.conforming.assignment.exists mcimadamore@1581: // key: compiler.misc.incompatible.arg.types.in.mref mcimadamore@1581: mcimadamore@1581: class IncompatibleArgTypesInMethodRef { mcimadamore@1581: interface SAM { mcimadamore@1581: void m(X x); mcimadamore@1581: } mcimadamore@1581: mcimadamore@1581: void g(String s, Integer i) { } mcimadamore@1581: mcimadamore@1581: void m(SAM s) { } mcimadamore@1581: mcimadamore@1581: void test() { mcimadamore@1581: m(this::g); mcimadamore@1581: } mcimadamore@1581: }