annotate tests/mini/typeinfo13.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/typeinfo13.d@5ab8e92611f9
children
rev   line source
lindquist@109 1 module typeinfo13;
lindquist@109 2
lindquist@109 3 void main()
lindquist@109 4 {
lindquist@109 5 float[long] aa;
lindquist@109 6 auto ti = typeid(typeof(aa));
lindquist@109 7 assert(ti.toString() == "float[long]");
lindquist@109 8 assert(ti.next() is typeid(float));
lindquist@109 9 assert(ti.tsize() == size_t.sizeof);
lindquist@109 10 auto aati = cast(TypeInfo_AssociativeArray)ti;
lindquist@109 11 assert(aati.value is typeid(float));
lindquist@109 12 assert(aati.key is typeid(long));
lindquist@109 13 }