[Issue 6330] New: Cannot disable assignment to a struct.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 15 20:12:56 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6330

           Summary: Cannot disable assignment to a struct.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com


--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2011-07-15 20:07:41 PDT ---
struct S {
    void opAssign(S s) @disable {
        assert(0);  // This fails.
    }
}

void main() {
    S s;
    S s2;
    s2 = s;
}

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


More information about the Digitalmars-d-bugs mailing list