View mode: basic / threaded / horizontal-split · Log in · Help
January 21, 2009
[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;
}


--
February 05, 2013
[Issue 2598] Alias declaration doesn't work for a tuple field
http://d.puremagic.com/issues/show_bug.cgi?id=2598


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
            Status|NEW                         |RESOLVED
                CC|                            |andrej.mitrovich@gmail.com
        Resolution|                            |WORKSFORME


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-04 17:44:13 PST ---
Works since 2.061.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home