// "Remove switch branch 'A'" "true-preview" class X { enum X {A,B,C} void test(X x) { if (x == X.A) return; int res = switch(x) { case A -> 1; case B -> 2; case C -> 3; }; } }