test/langtools/tools/javac/switchexpr/ExpressionSwitchIntersectionTypes.java
changeset 59021 cfc7bb9a5a92
parent 53878 4584d0331318
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    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) {