https://d.puremagic.com/issues/show_bug.cgi?id=12291

           Summary: Pick up "this" from alias parameters to nested
                    templates
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-03-03 
14:31:40 EET ---
////// test.d /////
void fun(alias a)()
{
    a = 42;
}

struct S
{
    int x;
}

void main()
{
    S s;
    fun!(s.x)();
}
///////////////////

Currently, this fails with:
test.d(14): Error: need 'this' for 'fun' of type 'pure nothrow @safe void()'

However, we provide the "this" in the "s.x" expression.

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

Reply via email to