< prev index next >

test/langtools/tools/javac/switchexpr/BooleanNumericNonNumeric.java

Print this page

        

*** 1,10 **** /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify the type of a conditional expression with nested switch expression is computed properly ! * @compile/fail/ref=BooleanNumericNonNumeric.out -XDrawDiagnostics --enable-preview -source 12 BooleanNumericNonNumeric.java */ public class BooleanNumericNonNumeric { private void test(boolean b, int i) { --- 1,10 ---- /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify the type of a conditional expression with nested switch expression is computed properly ! * @compile/fail/ref=BooleanNumericNonNumeric.out -XDrawDiagnostics --enable-preview -source 13 BooleanNumericNonNumeric.java */ public class BooleanNumericNonNumeric { private void test(boolean b, int i) {
< prev index next >