[Issue 22386] Unreachable warning for assertThrown with noreturn value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 14 10:22:19 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22386
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/phobos pull request #8273 "Fix 22386 - Omit
unreachable throw in assertThrown with noreturn value" fixing this issue:
- Fix 22386 - Omit unreachable throw in assertThrown with noreturn value
The lazy value will throw or never return at all and hence never
reach the additional throw statement.
https://github.com/dlang/phobos/pull/8273
--
More information about the Digitalmars-d-bugs
mailing list