[Issue 18661] New: auto ref and return attribute inference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 26 03:54:52 UTC 2018
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: nobody at puremagic.com
Reporter: bugzilla at 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
--
More information about the Digitalmars-d-bugs
mailing list