< prev index next >

test/langtools/tools/javac/switchexpr/ExpressionSwitchIntersectionTypes.java

Print this page

        

*** 23,33 **** /* * @test * @bug 8206986 * @summary Verify behavior when an intersection type is inferred for switch expression. ! * @compile --enable-preview -source 12 ExpressionSwitchIntersectionTypes.java * @run main/othervm --enable-preview ExpressionSwitchIntersectionTypes */ public class ExpressionSwitchIntersectionTypes<X extends java.io.Serializable & Runnable> { --- 23,33 ---- /* * @test * @bug 8206986 * @summary Verify behavior when an intersection type is inferred for switch expression. ! * @compile --enable-preview -source 13 ExpressionSwitchIntersectionTypes.java * @run main/othervm --enable-preview ExpressionSwitchIntersectionTypes */ public class ExpressionSwitchIntersectionTypes<X extends java.io.Serializable & Runnable> {
< prev index next >