zig
zig copied to clipboard
stage2: detect duplicate enum values
Closes https://github.com/ziglang/zig/issues/12805
Could you also handle this?
const T = enum(u8) {
a = 0x12,
b = 0x11,
c,
};
(just add the same fix a few lines lower)
Also don't add a new case when there is already one for stage1 that can be moved instead.
Thanks @Vexu for keeping up with this!