Mercurial > projects > dstress
diff run/typeid_79.d @ 535:0db095345640
TypeInfo_Array
Burton Radons <burton-radons@smocky.com>
2005-05-08
news:d5lotd$29j1$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 14 May 2005 05:43:26 +0000 |
parents | 5d6bb14f6415 |
children | ecb96b2bf5cb |
line wrap: on
line diff
--- a/run/typeid_79.d Sat May 14 05:23:21 2005 +0000 +++ b/run/typeid_79.d Sat May 14 05:43:26 2005 +0000 @@ -13,7 +13,15 @@ int main(){ TypeInfo ti = typeid(MyUnion[]); assert(!(ti is null)); + assert(ti); assert(ti.tsize==(MyUnion[]).sizeof); assert(ti.toString()=="dstress.run.typeid_78.MyUnion[]"); + + TypeInfo_Array ta = cast(TypeInfo_Array) ti; + assert(!(ta is null)); + assert(ta); + assert(ta.tsize==(MyUnion[]).sizeof); + assert(ta.toString()=="dstress.run.typeid_78.MyUnion[]"); + return 0; }