Files
ldc/test/tuple1.d
Tomas Lindquist Olsen 879d2f10be [svn r25] * Fixed a lot of problems with string literals
* Fixed slice-slice copying assignment
2007-10-04 07:01:15 +02:00

19 lines
185 B
D

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);
}