annotate tests/mini/tuple1.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
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 }