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.case.unexpected.statement |
24 // key: compiler.err.switch.case.unexpected.statement |
25 // key: compiler.note.preview.filename |
|
26 // key: compiler.note.preview.recompile |
|
27 // options: --enable-preview -source ${jdk.version} |
|
28 |
25 |
29 class ReturnOutsideSwitchExpression { |
26 class ReturnOutsideSwitchExpression { |
30 void t(int i) { |
27 void t(int i) { |
31 switch (i) { |
28 switch (i) { |
32 case 0 -> if (true); |
29 case 0 -> if (true); |