test/langtools/tools/javac/diags/examples/NotAnInterfaceComponent.java
changeset 50181 f854b76b6a0c
parent 50061 20520a835f48
equal deleted inserted replaced
50180:ffa644980dff 50181:f854b76b6a0c
    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.misc.not.a.functional.intf.1
    24 // key: compiler.err.prob.found.req
    25 // key: compiler.err.prob.found.req
    25 // key: compiler.misc.bad.intersection.target.for.functional.expr
    26 // key: compiler.misc.incompatible.abstracts
    26 // key: compiler.misc.not.an.intf.component
       
    27 
    27 
    28 class NotAnInterfaceComponent {
    28 class NotAnInterfaceComponent {
    29     Object o = (String & Runnable) ()-> { };
    29     Object o = (String & Runnable) ()-> { };
    30 }
    30 }