https://issues.dlang.org/show_bug.cgi?id=17512
John Colvin <john.loughran.col...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |john.loughran.colvin@gmail. | |com Resolution|FIXED |--- --- Comment #7 from John Colvin <john.loughran.col...@gmail.com> --- This seems to not to be totally resolved in very similar cases: struct S0(T) { int a; auto ref immutable(int) getA() { return a; } } alias A = S0!int; test.d(4): Error: function type pure nothrow @nogc return @safe immutable(int)() has return but does not return any indirections --