test/langtools/tools/javac/diags/examples/NotExhaustive.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.err.not.exhaustive
    24 // key: compiler.err.not.exhaustive
    25 // key: compiler.note.preview.filename
       
    26 // key: compiler.note.preview.recompile
       
    27 // options: --enable-preview -source ${jdk.version}
       
    28 
    25 
    29 class NotExhaustive {
    26 class NotExhaustive {
    30     int t(int i) {
    27     int t(int i) {
    31         return switch (i) {
    28         return switch (i) {
    32             case 0 -> -1;
    29             case 0 -> -1;