| ... | ... | @@ -2036,7 +2036,7 @@ pub const Parser = struct { |
| 2036 | 2036 | ); |
| 2037 | 2037 | try list_state.list.append(node); |
| 2038 | 2038 | stack.append(State { .SwitchCaseCommaOrEnd = list_state }) catch unreachable; |
| 2039 | | try stack.append(State { .Expression = DestPtr{ .Field = &node.expr } }); |
| 2039 | try stack.append(State { .AssignmentExpressionBegin = DestPtr{ .Field = &node.expr } }); |
| 2040 | 2040 | try stack.append(State { .PointerPayload = &node.payload }); |
| 2041 | 2041 | |
| 2042 | 2042 | const maybe_else = self.getNextToken(); |
| ... | ... | @@ -4817,6 +4817,7 @@ test "zig fmt: switch" { |
| 4817 | 4817 | \\ const res = switch (0) { |
| 4818 | 4818 | \\ 0 => 0, |
| 4819 | 4819 | \\ 1 => 2, |
| 4820 | \\ 1 => a = 4, |
| 4820 | 4821 | \\ else => 4 |
| 4821 | 4822 | \\ }; |
| 4822 | 4823 | \\ |