Probably related to #18124
module object;
alias noreturn = typeof(*null);
ulong test1 (ref noreturn key)
{
return hashOf (key); // code generated is: return 0
}
ulong test2 (const ref noreturn key)
{
return hashOf (key); // likewise
}
ulong test3 (noreturn key)
{
return hashOf (key); // likewise
}
ulong hashOf (const noreturn val)
{
assert(false);
}