Closed
Description
?noreturn
is not allowed instead of beingvoid
-equivalent (alwaysnull
). Likeu0
is currentlyvoid
-equivalent.- Empty unions are disallowed instead of being
noreturn
-equivalent. - unreachable code error is too strict, preventing instantiating generic code with
T=noreturn
- Using
noreturn
for union variant does still allocate a tag for such variant
Java gets unit and zero types wrong. Rust gets unit and zero types (relatively) right. Zig gets unit type right, but zero type wrong. Shall it be fixed?