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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2013-06-08 23:21:13 PDT ---
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: -------

Reply via email to