Currently `patterns/switch_expressions_variable_capture` fails because the joint variable is captured instead of the declared variable.