langtools/test/tools/javac/lambda/Intersection01.java
changeset 15375 d2529dc91d77
parent 14725 65836e833f59
child 16809 5acfcb821d65
equal deleted inserted replaced
15374:fb8f6acf09cc 15375:d2529dc91d77
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8002099
    26  * @bug 8002099
    27  * @summary Add support for intersection types in cast expression
    27  * @summary Add support for intersection types in cast expression
    28  * @compile/fail/ref=Intersection01.out -XDallowIntersectionTypes -XDrawDiagnostics Intersection01.java
    28  * @compile/fail/ref=Intersection01.out -XDrawDiagnostics Intersection01.java
    29  */
    29  */
    30 class Intersection01 {
    30 class Intersection01 {
    31 
    31 
    32     interface SAM {
    32     interface SAM {
    33         void m();
    33         void m();