[Issue 14626] New: [REG2.066] byValue doesn't work with inout AA
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu May 28 01:33:25 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14626
Issue ID: 14626
Summary: [REG2.066] byValue doesn't work with inout AA
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
///////////// test.d /////////////
struct S
{
string[string] aa;
inout(string) m() inout
{
return aa.byValue().front;
}
}
//////////////////////////////////
C:\...\druntime\object.d(1906): Error: inout on return means inout must be on a
parameter as well for @property ref Value()
test.d(7): Error: template instance object.byValue!(inout(string[string]),
inout(string), string) error instantiating
Introduced in:
https://github.com/D-Programming-Language/dmd/pull/2856
https://github.com/D-Programming-Language/druntime/pull/668
--
More information about the Digitalmars-d-bugs
mailing list