www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2598] New: Alias declaration doesn't work for a tuple field

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

           Summary: Alias declaration doesn't work for a tuple field
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


This doesn't compile and it should:

struct S(T...)
{
    T field;
    alias field[0] a;
}

void main()
{
    S!(int, string) s;
}


-- 
Jan 20 2009