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

           Summary: properties of alias this'd array overrides method
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: mrmoc...@gmx.de


--- Comment #0 from Trass3r <mrmoc...@gmx.de> 2011-08-14 09:35:08 PDT ---
import std.stdio;
struct F
{
    int[] g;
    alias g this;

    auto ptr()
    {
        return g.ptr;
        write("ptr\n");
    }
}

void main()
{
    F a;
    auto p = a.ptr;
}

prints nothing even though ptr method should override g's .ptr

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

Reply via email to