comparison 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
comparison
equal deleted inserted replaced
20:42bf2eb2973b 21:8d45266bbabe
1 module tuple1;
2
3 template Tuple(T...) {
4 alias T Tuple;
5 }
6
7 struct S
8 {
9 int i;
10 long l;
11 }
12
13 void main()
14 {
15 S s = S(Tuple!(1,2L));
16 assert(s.i == 1);
17 assert(s.l == 2);
18 }