19 lines
301 B
Zig
19 lines
301 B
Zig
const MultipleChoice = enum(u32) {
|
|
A = 20,
|
|
B = 40,
|
|
C = 60,
|
|
D = 1000,
|
|
E = 60,
|
|
};
|
|
export fn entry() void {
|
|
var x = MultipleChoice.C;
|
|
_ = x;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :6:9: error: enum tag value 60 already taken
|
|
// :4:5: note: other occurrence here
|