< prev index next >
test/langtools/tools/javac/diags/examples/BreakOutsideSwitchExpression.java
Print this page
*** 22,32 ****
*/
// key: compiler.err.break.outside.switch.expression
// key: compiler.note.preview.filename
// key: compiler.note.preview.recompile
! // options: --enable-preview -source 12
class BreakOutsideSwitchExpression {
int t(int i) {
OUT: while (true) {
return switch (i) {
--- 22,32 ----
*/
// key: compiler.err.break.outside.switch.expression
// key: compiler.note.preview.filename
// key: compiler.note.preview.recompile
! // options: --enable-preview -source 13
class BreakOutsideSwitchExpression {
int t(int i) {
OUT: while (true) {
return switch (i) {
< prev index next >