test/langtools/tools/javac/switchextra/SwitchArrowBrokenConstant.java
changeset 59021 cfc7bb9a5a92
parent 53878 4584d0331318
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
     1 /*
     1 /*
     2  * @test /nodymaticcopyright/
     2  * @test /nodymaticcopyright/
     3  * @bug 8206986
     3  * @bug 8206986
     4  * @summary Verify reasonable errors are produced when neither ':' nor '->'
     4  * @summary Verify reasonable errors are produced when neither ':' nor '->'
     5  *          is found are the expression of a case
     5  *          is found are the expression of a case
     6  * @compile/fail/ref=SwitchArrowBrokenConstant.out -source ${jdk.version} --enable-preview -Xlint:-preview -XDrawDiagnostics SwitchArrowBrokenConstant.java
     6  * @compile/fail/ref=SwitchArrowBrokenConstant.out -Xlint:-preview -XDrawDiagnostics SwitchArrowBrokenConstant.java
     7  */
     7  */
     8 
     8 
     9 public class SwitchArrowBrokenConstant {
     9 public class SwitchArrowBrokenConstant {
    10 
    10 
    11     private String likeLambda(int i) {
    11     private String likeLambda(int i) {