https://issues.dlang.org/show_bug.cgi?id=9685
John Colvin <john.loughran.col...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |john.loughran.colvin@gmail. | |com --- Comment #1 from John Colvin <john.loughran.col...@gmail.com> --- Apparently this is a the same bug, see http://forum.dlang.org/post/crhogpikareipbtys...@forum.dlang.org import std.stdio; struct MapResult(alias fun) { @property int front() {return fun();} @property auto save() {return typeof(this)();} } void main() { int ys_length = 4; auto dg = {return MapResult!({return ys_length;})();}; writeln(dg().front); /* 4, correct */ writeln(dg().save.front); /* garbage */ } --