Mercurial > projects > ldc
view test/tuple1.d @ 141:8f43f5c43c95 trunk
[svn r145] fixed some x86 problems
author | lindquist |
---|---|
date | Wed, 23 Jan 2008 12:58:51 +0100 |
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); }