[Issue 8971] New: __traits(getOverloads) fails in a member function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 7 06:56:54 PST 2012


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

           Summary: __traits(getOverloads) fails in a member function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: samukha at voliacable.com


--- Comment #0 from Max Samukha <samukha at voliacable.com> 2012-11-07 06:56:53 PST ---
class A
{
    void bar() {}

    void connect()
    {
        alias Tuple!(__traits(getOverloads, typeof(this), "bar")) overloads; 
    }
}

Error: variable this cannot be read at compile time.

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


More information about the Digitalmars-d-bugs mailing list