[Issue 22386] New: Unreachable warning for assertThrown with noreturn value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 14 10:19:56 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22386
Issue ID: 22386
Summary: Unreachable warning for assertThrown with noreturn
value
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: moonlightsentinel at disroot.org
Passing a noreturn value to assertThrown triggers an unreachable statement
warning, e.g.
noreturn throwEx() { throw new Exception(""); }
assertThrown(throwEx());
std/exception.d(297): Warning: statement is not reachable
--
More information about the Digitalmars-d-bugs
mailing list