equal
deleted
inserted
replaced
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.switch.expression.completes.normally |
24 // key: compiler.err.switch.expression.completes.normally |
25 // key: compiler.note.preview.filename |
|
26 // key: compiler.note.preview.recompile |
|
27 // options: --enable-preview -source ${jdk.version} |
|
28 |
25 |
29 class SwitchExpressionCompletesNormally { |
26 class SwitchExpressionCompletesNormally { |
30 public String convert(int i) { |
27 public String convert(int i) { |
31 return switch (i) { |
28 return switch (i) { |
32 case 0: yield ""; |
29 case 0: yield ""; |