https://issues.dlang.org/show_bug.cgi?id=12829
--- Comment #1 from [email protected] --- This reports only one closure: void main() @nogc { int x; void delegate() @nogc foo; foo = () { int y = x; }; void delegate() @nogc bar; bar = () { int y = x; }; } test.d(1,6): Error: function D main @nogc function allocates a closure with the GC --
