www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14626] New: [REG2.066] byValue doesn't work with inout AA


          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 puremagic.com
          Reporter: thecybershadow 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:

May 28 2015