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

           Summary: 'alias this' in struct breaks blitting
           Product: D
           Version: 2.030
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: kovrov+purema...@gmail.com


struct Test
{
    int foo;
    int bar;
    alias foo this; // this is important
}

void main()
{
    Test t1 = Test(3,5), t2;
    t2 = t1;  // blitting is messed up?
    assert (t1.foo == t2.foo);
    assert (t1.bar == t2.bar); // will throw
}

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

Reply via email to