[Issue 6508] alias this doesn't work with AssignExp rhs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 16 12:35:19 PDT 2011


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



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-08-16 12:35:18 PDT ---
Sorry, Comment#0's sample code is incomplete.

template Seq(T...)
{
    alias T Seq;
}
struct Tup(T...)
{
    T field;
    alias field this;
}
void main()
{
    int x, y;
    Seq!(x, y) = Tup!(int, int)(10, 20);
    assert(x == 10);
    assert(y == 20);
}

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


More information about the Digitalmars-d-bugs mailing list