equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * @test /nodynamiccopyright/ |
2 * @test /nodynamiccopyright/ |
3 * @bug 8206986 |
3 * @bug 8206986 |
4 * @summary Verify the type of a conditional expression with nested switch expression is computed properly |
4 * @summary Verify the type of a conditional expression with nested switch expression is computed properly |
5 * @compile/fail/ref=BooleanNumericNonNumeric.out -XDrawDiagnostics --enable-preview -source ${jdk.version} BooleanNumericNonNumeric.java |
5 * @compile/fail/ref=BooleanNumericNonNumeric.out -XDrawDiagnostics BooleanNumericNonNumeric.java |
6 */ |
6 */ |
7 |
7 |
8 public class BooleanNumericNonNumeric { |
8 public class BooleanNumericNonNumeric { |
9 |
9 |
10 private void test(boolean b, int i) { |
10 private void test(boolean b, int i) { |