comparison run/typeid_19.d @ 342:111c6744074d

typeid(type).tsize == type.sizeof ahiru <ahiru@1dk.jp> 2005-03-01 news:d015pr$1t80$1@digitaldaemon.com
author thomask
date Tue, 22 Mar 2005 08:02:21 +0000
parents c1ca2f37362b
children
comparison
equal deleted inserted replaced
341:b541f2516cd4 342:111c6744074d
6 module dstress.run.typeid_19; 6 module dstress.run.typeid_19;
7 7
8 int main(){ 8 int main(){
9 TypeInfo ti = typeid(byte); 9 TypeInfo ti = typeid(byte);
10 assert(!(ti is null)); 10 assert(!(ti is null));
11 assert(ti.tsize==(byte).sizeof);
11 assert(ti.toString()=="byte"); 12 assert(ti.toString()=="byte");
12 return 0; 13 return 0;
13 } 14 }