test/langtools/tools/javac/diags/examples/NotAnInterfaceComponent.java
changeset 50061 20520a835f48
parent 47216 71c04702a3d5
child 50181 f854b76b6a0c
equal deleted inserted replaced
50060:06d5b1f66553 50061:20520a835f48
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 // key: compiler.err.prob.found.req
    24 // key: compiler.err.prob.found.req
    25 // key: compiler.misc.bad.intersection.target.for.functional.expr
    25 // key: compiler.misc.bad.intersection.target.for.functional.expr
    26 // key: compiler.misc.not.an.intf.component
    26 // key: compiler.misc.not.an.intf.component
    27 
    27 
    28 class NotAnInterfaceComponent {
    28 class NotAnInterfaceComponent {
    29     Object o = (Object & Runnable) ()-> { };
    29     Object o = (String & Runnable) ()-> { };
    30 }
    30 }