test/langtools/tools/javac/diags/examples/BracketsNotAllowedImplicitLambda.java
changeset 55306 ea43db53de91
parent 48920 916690b5edc9
equal deleted inserted replaced
55305:6e432194ee97 55306:ea43db53de91
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 // key: compiler.err.var.not.allowed.array
    24 // key: compiler.err.restricted.type.not.allowed.array
    25 
    25 
    26 import java.util.function.*;
    26 import java.util.function.*;
    27 
    27 
    28 class BracketsNotAllowedImplicitLambda {
    28 class BracketsNotAllowedImplicitLambda {
    29     BiFunction<String[], String, String> f = (var s1[], var s2) -> s2;
    29     BiFunction<String[], String, String> f = (var s1[], var s2) -> s2;