diff -r 000000000000 -r 959103a6100f test/tools/javac/lambda/MostSpecific02.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/lambda/MostSpecific02.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,25 @@ +/* + * @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); + } +}