view test/tuple1.d @ 52:0c77619e803b trunk

[svn r56] Initial support for TypeInfo. Enums not work. Several other bugfixes.
author lindquist
date Tue, 23 Oct 2007 05:55:12 +0200
parents 8d45266bbabe
children
line wrap: on
line source

module tuple1;

template Tuple(T...) {
    alias T Tuple;
}

struct S
{
    int i;
    long l;
}

void main()
{
    S s = S(Tuple!(1,2L));
    assert(s.i == 1);
    assert(s.l == 2);
}