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.no.switch.expression.qualify |
24 // key: compiler.err.no.switch.expression.qualify |
25 // options: --enable-preview --source 13 |
25 // options: --enable-preview --source ${jdk.version} |
26 |
26 |
27 class BreakComplexValueNoSwitchExpressions { |
27 class BreakComplexValueNoSwitchExpressions { |
28 void t() { |
28 void t() { |
29 while (true) { |
29 while (true) { |
30 yield(1 + 1); |
30 yield(1 + 1); |