Summary: Cannot get parent of an overload
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Max Samukha <> 2012-11-02 09:08:42 
PDT ---
struct S
    void foo();

// Just to be able to alias __traits 
template AliasTuple(A...)
    alias A AliasTuple;

alias AliasTuple!(__traits(getOverloads, S, "foo")) Overloads;
alias AliasTuple!(__traits(parent, Overloads[0])) P; // fail
static assert(is(P[0] == S));

Error: argument foo has no parent

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

Reply via email to