https://issues.dlang.org/show_bug.cgi?id=18407
--- Comment #2 from Timothee Cour <[email protected]> --- workaround suggested here by Adam Ruppe: https://forum.dlang.org/post/[email protected] ``` void foo() {} @trusted nothrow @nogc void da(scope void delegate() a) { auto hack = cast(void delegate() @nogc) a; try hack(); catch(Exception e) assert(0, e.msg); } @safe nothrow @nogc pure void main() { debug da({foo();}); } ``` --
