[Issue 19602] Under some circumstances: throwing Error subclasses unwinds without invoking dtors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 22 09:14:48 UTC 2019


--- Comment #7 from Jacob Carlborg <doob at me.com> ---
(In reply to Mathias LANG from comment #6)

> Yep, however that's covered by the specs:
> > Individual tests are specified in the unit test using spec/expression, AssertExpressions. Unlike AssertExpressions used elsewhere, the assert is not assumed to hold, and upon assert failure the program is still in a defined state.
> https://dlang.org/spec/unittest.html

It's difficult to know if the AssertError was thrown from a "unittest" block or
from somewhere else.


More information about the Digitalmars-d-bugs mailing list