August 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2283

           Summary: protection attributes are not respected for struct
                    opAssign
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: 2korden@gmail.com


struct Test {
    int i;
    private void opAssign(int i) {
        this.i = i;
    }
}

void main() {
    Test test;
    test = 42;  // accepted
}


-- 

November 24, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2283


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from smjg@iname.com  2008-11-24 09:24 -------
The access is in the same module, therefore this is allowed.

If they are placed in different modules, it fails as expected (1.036, 2.019).


--