master
1const MultipleChoice = union(enum(u32)) {
2 A = 20,
3 B = 40,
4 C = 60,
5 D = 1000,
6 E = 60,
7};
8export fn entry() void {
9 const x: MultipleChoice = .{ .C = {} };
10 _ = x;
11}
12
13// error
14//
15// :6:9: error: enum tag value 60 already taken
16// :4:9: note: other occurrence here