the example bellow will run the compilation progress until the end, then
an error message with no line nor column or file name, will indicate a
duplicated case on the switch block, which is visibly an bug but also
really hard to spot where it happens.
type foo = enum {
a, b, c, d
};
export fn main() void = {
const bar = foo::a;
switch(bar){
case foo::a => void;
case foo::b, foo::b, foo::c => void;
case foo::d => void;
};
};
<unknown>:0:0: error: Duplicate switch case
compiler version: harec 0.24.0-rc1-80-g42f9b39