langtools/test/tools/javac/lambda/MostSpecific02.java
author vromero
Mon, 02 Sep 2013 22:38:36 +0100
changeset 19914 d86271bd430a
parent 14547 86d8d242b0c4
permissions -rw-r--r--
8016177: structural most specific and stuckness Reviewed-by: jjg, vromero Contributed-by: maurizio.cimadamore@oracle.com

/*
 * @test /nodynamiccopyright/
 * @bug 8003280
 * @summary Add lambda tests
 *  check correctness of structural most specific test routine
 * @compile/fail/ref=MostSpecific02.out -XDrawDiagnostics MostSpecific02.java
 */

class Test {

    interface IntMapper {
        int map();
    }

    interface LongMapper {
        long map();
    }

    void m(IntMapper im, LongMapper s) { }
    void m(LongMapper lm, IntMapper s) { }

    void test() {
        m(()->1, ()->1);
    }
}