Mercurial > projects > ldc
view test/tuple1.d @ 56:3a784f7790d6 trunk
[svn r60] fixed vararg1 test
author | lindquist |
---|---|
date | Wed, 24 Oct 2007 22:26:37 +0200 |
parents | 8d45266bbabe |
children |
line wrap: on
line source
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); }