equal
deleted
inserted
replaced
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8206986 |
26 * @bug 8206986 |
27 * @summary Verify behavior when an intersection type is inferred for switch expression. |
27 * @summary Verify behavior when an intersection type is inferred for switch expression. |
28 * @compile --enable-preview -source ${jdk.version} ExpressionSwitchIntersectionTypes.java |
28 * @compile ExpressionSwitchIntersectionTypes.java |
29 * @run main/othervm --enable-preview ExpressionSwitchIntersectionTypes |
29 * @run main ExpressionSwitchIntersectionTypes |
30 */ |
30 */ |
31 |
31 |
32 public class ExpressionSwitchIntersectionTypes<X extends java.io.Serializable & Runnable> { |
32 public class ExpressionSwitchIntersectionTypes<X extends java.io.Serializable & Runnable> { |
33 |
33 |
34 void test1(int i, X x) { |
34 void test1(int i, X x) { |