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

[email protected] changed:

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

--- Comment #1 from [email protected] ---
I think this is a duplicate of issue 14771.

That is, bar shouldn't compile. The delegate uses a local variable and is
returned from the function, so it needs a closure. Where does that closure go
if not on the GC heap?

--

Reply via email to