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

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

    auto ptr()
        return g.ptr;

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

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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to