< prev index next >
test/langtools/tools/javac/switchexpr/ExpressionSwitchEmbedding.java
Print this page
*** 23,33 ****
/*
* @test
* @bug 8214031
* @summary Verify switch expressions embedded in various statements work properly.
! * @compile --enable-preview -source 12 ExpressionSwitchEmbedding.java
* @run main/othervm --enable-preview ExpressionSwitchEmbedding
*/
public class ExpressionSwitchEmbedding {
public static void main(String... args) {
--- 23,33 ----
/*
* @test
* @bug 8214031
* @summary Verify switch expressions embedded in various statements work properly.
! * @compile --enable-preview -source 13 ExpressionSwitchEmbedding.java
* @run main/othervm --enable-preview ExpressionSwitchEmbedding
*/
public class ExpressionSwitchEmbedding {
public static void main(String... args) {
< prev index next >