equal
deleted
inserted
replaced
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) { |