Mercurial > projects > ldc
view tests/mini/tuplestruct.d @ 1133:eeb8b95ea92e
Cleanup DMD 1.041 merge.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Mon, 23 Mar 2009 20:26:33 +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); }