test/langtools/tools/javac/diags/examples/InvalidYield.java
changeset 59021 cfc7bb9a5a92
parent 55382 30b1b7b4dd86
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    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);