[Issue 17512] [REG 2.073] [DIP1000] Error on bad interplay of 'auto ref' and 'return' attribute deduction.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 22 19:53:46 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17512
John Colvin <john.loughran.colvin at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |john.loughran.colvin at gmail.
| |com
Resolution|FIXED |---
--- Comment #7 from John Colvin <john.loughran.colvin at 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
--
More information about the Digitalmars-d-bugs
mailing list