< prev index next >

test/langtools/tools/javac/diags/examples/IllegalRefToRestrictedType.java

Print this page
rev 56806 : 8232684: Make switch expressions final
Reviewed-by: TBD

@@ -20,11 +20,12 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
 // key: compiler.warn.illegal.ref.to.restricted.type
-// key: compiler.warn.restricted.type.not.allowed.preview
+// key: compiler.warn.restricted.type.not.allowed
+// options: -Xlint:-options -source 13
 
 class IllegalRefToVarType {
     yield list() { return null; }
     public class yield {}
 }
< prev index next >