Summary: tuples can't be aliases
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD


import std.stdio;

template Ta(alias t){void Tfn(){writef(t);}}
template Tt(t...){void Tfn(){writef(t);}}

struct S
   int i; int j; int k;
   mixin Ta!(i);  // passes
   mixin Tt!(i,j);  // fails

this causes issues for mixin function that are supposed to work on a subset of
the members of the enclosing type. The string mixin work around is just flat

I don't think the spec says this shouldn't work so I'm calling it a bug.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to