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