zig icon indicating copy to clipboard operation
zig copied to clipboard

stage2: detect duplicate enum values

Open g-w1 opened this issue 3 years ago • 1 comments

Closes https://github.com/ziglang/zig/issues/12805

g-w1 avatar Sep 11 '22 23:09 g-w1

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.

Vexu avatar Sep 12 '22 00:09 Vexu

Thanks @Vexu for keeping up with this!

g-w1 avatar Sep 27 '22 23:09 g-w1