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

greenify <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from greenify <[email protected]> ---
This a really annoying limitation during the process of annotating Phobos
unittests.
It leads from a nice one-liner, e.g.

assertThrown!AssertError(arr.stride(0));

to be replaced with 10 lines:

bool passed = false;
scope (success) assert(passed);
try
{
    cast(void) arr.stride(0);
}
catch (AssertError unused)
{
    passed = true;
}

--

Reply via email to