Mercurial > projects > ldc
view test/tuple1.d @ 338:0c90d816394f trunk
[svn r359] Try to fix DtoArrayInit. Unfinished, breaks for arrays of primitive types.
author | ChristianK |
---|---|
date | Sat, 12 Jul 2008 23:56:56 +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); }