[Issue 23114] Can't use noreturn operand in arithmetic expression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 17 19:38:25 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23114
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
This has nothing in particular to do with throwing expressions. The following
fails for the same reason:
---
noreturn foo();
int test()
{
return 1 + foo();
}
---
--
More information about the Digitalmars-d-bugs
mailing list