langtools/test/tools/javac/ConditionalArgTypes_2.java
changeset 2985 f43e1241e7fb
parent 10 06bc494ca11e
child 5520 86e4b9a9da40
equal deleted inserted replaced
2984:e15ff3a34054 2985:f43e1241e7fb
    26  * @bug 4312781 4881179 4949543
    26  * @bug 4312781 4881179 4949543
    27  * @summary Verify that both branches of a conditional expression must agree in type.
    27  * @summary Verify that both branches of a conditional expression must agree in type.
    28  * @author maddox
    28  * @author maddox
    29  *
    29  *
    30  * @compile/fail -source 1.4 ConditionalArgTypes_2.java
    30  * @compile/fail -source 1.4 ConditionalArgTypes_2.java
    31  * @compile -source 1.5 ConditionalArgTypes_2.java
    31  * @compile                  ConditionalArgTypes_2.java
    32  */
    32  */
    33 
    33 
    34 // This case was working before -- controlling expression is not a constant.
    34 // This case was working before -- controlling expression is not a constant.
    35 
    35 
    36 class ConditionalArgTypes_2 {
    36 class ConditionalArgTypes_2 {