https://issues.dlang.org/show_bug.cgi?id=18661
Issue ID: 18661 Summary: auto ref and return attribute inference Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: bugzi...@digitalmars.com John Colvin reports: 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 --