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