Mercurial > projects > ldc
view tests/mini/tuplestruct.d @ 1136:9d308feaec27
Fix #239.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 24 Mar 2009 14:33:57 +0100 |
parents | 76e72fdef04d |
children | 8ebbad15fc99 |
line wrap: on
line source
struct V(T...) { T v; } alias V!(Object, int) MyV; void main() { assert(MyV.sizeof == Object.sizeof + int.sizeof); auto o = new Object; auto v = MyV(o, 3); assert(v.v[0] is o); assert(v.v[1] == 3); }