Hi,
this code does not compile, use of `CONST` in the switch gives
harec: src/check.c:2889: casecmp: Assertion `a->result->storage == b->result->storage’ failed.
```
use os;
type error = !int;
def CONST: error = 1;
export fn main() void = {
const e: error = 0;
switch(e) {
case 0 => os::exit(0);
case CONST => os::exit(1);
case => os::exit(2);
};
};
```
If I define `CONST` as int, not an error type, the code compiles.
kind regards,
Tom