test/langtools/tools/javac/diags/examples/IllegalRefToRestrictedType.java
changeset 59021 cfc7bb9a5a92
parent 55306 ea43db53de91
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    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.warn.illegal.ref.to.restricted.type
    24 // key: compiler.warn.illegal.ref.to.restricted.type
    25 // key: compiler.warn.restricted.type.not.allowed.preview
    25 // key: compiler.warn.restricted.type.not.allowed
       
    26 // options: -Xlint:-options -source 13
    26 
    27 
    27 class IllegalRefToVarType {
    28 class IllegalRefToVarType {
    28     yield list() { return null; }
    29     yield list() { return null; }
    29     public class yield {}
    30     public class yield {}
    30 }
    31 }