1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/lambda/TargetType57.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,20 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8007464 1.7 + * @summary Add graph inference support 1.8 + * more smoke tests for graph inference 1.9 + * @compile/fail/ref=TargetType57.out -XDrawDiagnostics TargetType57.java 1.10 + */ 1.11 +import java.util.*; 1.12 +import java.util.function.*; 1.13 + 1.14 +class TargetType57 { 1.15 + 1.16 + void test(List<Integer> list) { 1.17 + m(list, s -> s.intValue(), s -> s.nonExistentMethod()); 1.18 + } 1.19 + 1.20 + <U, R, S_IN, S_OUT> R m(List<S_IN> list, 1.21 + Function<S_IN, S_OUT> f1, 1.22 + Function<S_OUT, R> f2) { return null; } 1.23 +}