annotate test/tuple1.d @ 21:8d45266bbabe trunk

[svn r25] * Fixed a lot of problems with string literals * Fixed slice-slice copying assignment
author lindquist
date Thu, 04 Oct 2007 07:01:15 +0200
parents
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 }