ive just found a pretty bizarre bug and im not sure if its in MultiArrayList or the compiler
const Foo = union(enum) {
a: u32,
b: usize,
};
var list = std.MultiArrayList(Foo){};
try list.append(std.heap.page_allocator, .{ .a = 69 });
switch (list.get(0)) {
.a, .b => |ab| std.debug.print("{}\n", .{ab}),
}
naturally this prints 69 as you'd expect, but if you just flip the order of the switch cases
switch (list.get(0)) {
.b, .a => |ab| std.debug.print("{}\n", .{ab}),
}
it now prints 139899969732677