test/langtools/tools/javac/diags/examples/IntersectionTypesInCastNotSupported.java
changeset 48054 702043a4cdeb
parent 47216 71c04702a3d5
equal deleted inserted replaced
48053:6dcbdc9f99fc 48054:702043a4cdeb
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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.intersection.types.in.cast.not.supported.in.source
    24 // key: compiler.err.feature.not.supported.in.source.plural
       
    25 // key: compiler.misc.feature.intersection.types.in.cast
    25 // options: -source 7 -Xlint:-options
    26 // options: -source 7 -Xlint:-options
    26 
    27 
    27 interface IntersectionTypesInCastNotSupported {
    28 interface IntersectionTypesInCastNotSupported {
    28     Object o = (A & B)null;
    29     Object o = (A & B)null;
    29 }
    30 }