< prev index next >
test/langtools/tools/javac/diags/examples/SwitchCaseUnexpectedStatement.java
Print this page
*** 22,32 ****
*/
// key: compiler.err.switch.case.unexpected.statement
// key: compiler.note.preview.filename
// key: compiler.note.preview.recompile
! // options: --enable-preview -source 12
class ReturnOutsideSwitchExpression {
void t(int i) {
switch (i) {
case 0 -> if (true);
--- 22,32 ----
*/
// key: compiler.err.switch.case.unexpected.statement
// key: compiler.note.preview.filename
// key: compiler.note.preview.recompile
! // options: --enable-preview -source 13
class ReturnOutsideSwitchExpression {
void t(int i) {
switch (i) {
case 0 -> if (true);
< prev index next >