https://issues.dlang.org/show_bug.cgi?id=18407
--- Comment #2 from Timothee Cour <timothee.co...@gmail.com> --- workaround suggested here by Adam Ruppe: https://forum.dlang.org/post/ojgxdtqodcamkqcrx...@forum.dlang.org ``` 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();}); } ``` --