test/langtools/tools/javac/diags/examples/SwitchRules.java
changeset 59021 cfc7bb9a5a92
parent 53878 4584d0331318
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.misc.feature.switch.rules
    24 // key: compiler.misc.feature.switch.rules
    25 // key: compiler.warn.preview.feature.use.plural
    25 // key: compiler.err.feature.not.supported.in.source.plural
    26 // options: --enable-preview -source ${jdk.version} -Xlint:preview
    26 // options: -Xlint:-options -source 13
    27 
    27 
    28 class SwitchExpressions {
    28 class SwitchExpressions {
    29     void m(int i) {
    29     void m(int i) {
    30         switch (i) {
    30         switch (i) {
    31             default -> { break; }
    31             default -> { break; }