~sircmpwn/hare-users

harec: error when exporting enum rune

Details
Message ID
<7543b1728aab89584a6293521b2891803cbf5ade.camel@lunabee.space>
DKIM signature
pass
Download raw message
hey!

exporting an enum with rune storage causes harec to fail and emit the
following error:
-----
harec: src/typedef.c:52: storage_to_suffix: Assertion `0' failed.
-----

to my understanding, enums with rune storage are spec-compliant. I've
verified this on version 0.24.0, and using custom compiled hare at
commit a3fd5ec and harec at 3662f0c. the following program reproduces
it:

-----
export type polarity = enum rune{ POS = '+' };

export fn main() void = {
    const joe = polarity::POS;
};
-----

thanks!
Reply to thread Export thread (mbox)