annotate tests/mini/tuple1.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/tuple1.d@8d45266bbabe
children
rev   line source
lindquist@21 1 module tuple1;
lindquist@21 2
lindquist@21 3 template Tuple(T...) {
lindquist@21 4 alias T Tuple;
lindquist@21 5 }
lindquist@21 6
lindquist@21 7 struct S
lindquist@21 8 {
lindquist@21 9 int i;
lindquist@21 10 long l;
lindquist@21 11 }
lindquist@21 12
lindquist@21 13 void main()
lindquist@21 14 {
lindquist@21 15 S s = S(Tuple!(1,2L));
lindquist@21 16 assert(s.i == 1);
lindquist@21 17 assert(s.l == 2);
lindquist@21 18 }