www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12206] New: Can't "alias this" to a template instantiation

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

           Summary: Can't "alias this" to a template instantiation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2014-02-20
01:43:46 EET ---
template T()
{
    void foo() {}
}

struct S
{
    alias t = T!();
    alias t this;
}

void main()
{
    S s;
    s.foo();
}

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