www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10313] New: inout constructor + IFTI + has indirections arg doesn't work

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10313

           Summary: inout constructor + IFTI + has indirections arg
                    doesn't work
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com



This code should work, but doesn't.

Test case:

struct JSONValue
{
    JSONValue[] array;
}
struct Nullable(T)
{
    this()(inout T value) inout {}
    //this(U:T)(inout U value) inout {} // workaround
}
void main()
{
    JSONValue value = void;
    auto na = Nullable!JSONValue(value);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 08 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10313


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/dmd/pull/2675

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 16 2013