[Issue 22386] Unreachable warning for assertThrown with noreturn value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 14 15:41:03 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22386

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8273 "Fix 22386 - Omit unreachable throw in
assertThrown with noreturn value" was merged into master:

- f08814120b1a26f0bb0b3a799c01bbbbcbda1cf5 by MoonlightSentinel:
  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