test/tools/javac/lambda/TargetType01.java

changeset 2370
acd64168cf8b
parent 2000
4a6acc42c3a1
child 2525
2eb010b6cb22
equal deleted inserted replaced
2369:77352397867a 2370:acd64168cf8b
1 /* 1 /*
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
40 40
41 static Integer M(F_I_I f){ return null; } 41 static Integer M(F_I_I f){ return null; }
42 static String M(F_S_S f){ return null; } 42 static String M(F_S_S f){ return null; }
43 43
44 static { 44 static {
45 M(x1 -> { return M( x2 -> { return x1 + x2; });}); //ambiguous 45 M(x1 -> {
46 return M( x2 -> {
47 return x1 + x2;
48 });
49 }); //ambiguous
46 } 50 }
47 } 51 }

mercurial