Mercurial > projects > ldc
view tests/mini/typeinfo13.d @ 1065:dc576c7e4b1e
Fix to make sure to create gen/ in build dir and unbreak build with older perl
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 08 Mar 2009 16:37:55 +0100 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module typeinfo13; void main() { float[long] aa; auto ti = typeid(typeof(aa)); assert(ti.toString() == "float[long]"); assert(ti.next() is typeid(float)); assert(ti.tsize() == size_t.sizeof); auto aati = cast(TypeInfo_AssociativeArray)ti; assert(aati.value is typeid(float)); assert(aati.key is typeid(long)); }