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

           Summary: 'alias this' causes toString to be shadowed by aliased
                    object
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: hst...@quickfur.ath.cx


--- Comment #0 from hst...@quickfur.ath.cx 2012-05-10 13:00:39 PDT ---
Code:
        struct S {
                short[4] data;
                alias this data;

                string toString() { ... }
        }
        ...
        S s;
        writeln(to!string(s));

In dmd 2.059 (I believe) and earlier, this calls S.toString(). However,
in git dmd, this calls data.toString() instead.

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

Reply via email to