#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const E = enum { a, b };
const U = union(E) {
    a: u32,
    a: u32,
};

export fn foo() void {
    const u: U = .{ .a = 123 };
    _ = u;
}
#}
#update
#check errors {
test.zig:3:5: error: duplicate union member name 'a'
test.zig:4:5: note: duplicate name here
test.zig:2:11: note: union declared here
#}
