test/langtools/tools/javac/diags/examples/SwitchExpressionTargetCantBeVoid.java
changeset 59021 cfc7bb9a5a92
parent 53878 4584d0331318
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    22  */
    22  */
    23 
    23 
    24 // key: compiler.err.prob.found.req
    24 // key: compiler.err.prob.found.req
    25 // key: compiler.misc.incompatible.ret.type.in.lambda
    25 // key: compiler.misc.incompatible.ret.type.in.lambda
    26 // key: compiler.misc.switch.expression.target.cant.be.void
    26 // key: compiler.misc.switch.expression.target.cant.be.void
    27 // key: compiler.note.preview.filename
       
    28 // key: compiler.note.preview.recompile
       
    29 // options: --enable-preview -source ${jdk.version}
       
    30 
    27 
    31 class SwitchExpressionTargetCantBeVoid {
    28 class SwitchExpressionTargetCantBeVoid {
    32 
    29 
    33     interface SAM {
    30     interface SAM {
    34         void m();
    31         void m();