https://issues.dlang.org/show_bug.cgi?id=14807
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from [email protected] --- Silly workaround: Pass the literal to another literal that takes a scope delegate. ---- void foo(int a) @nogc { static if (__traits(compiles, (scope void delegate()){}( { a = 2; } ) )) {} } ---- --
