https://issues.dlang.org/show_bug.cgi?id=24838
--- Comment #11 from Manu <[email protected]> --- This is a language thing; GDC/LDC have nothing to say about this. The frontend implements this, it's semantic to detect if a closure only contains a single thing and then delete it. Yes, you touched on one issue with mutability of references to stack objects; however `this` is not mutable, it's impossible for `this` to change during the lifetime of the closure, which is why my initial request applies to `this`... any expansion of this optimisation is theoretical, but the case for `this`, which is overwhelmingly the most common and the most useful case should be addressed initially. Also, why did you rename my issue? :/ --
