Mercurial > projects > dstress
annotate run/typeid_84.d @ 570:32f7f8ce5e51
updated "===" -> "is" and "!==" to "!(...===...)"
author | thomask |
---|---|
date | Wed, 08 Jun 2005 17:49:15 +0000 |
parents | a82c4eea402e |
children | b8c0195059d9 |
rev | line source |
---|---|
342 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ ahiru <ahiru@1dk.jp> | |
6 // @date@ 2005-03-01 | |
7 // @uri@ news:d015pr$1t80$1@digitaldaemon.com | |
8 | |
9 module dstress.run.typeid_84; | |
10 | |
11 int main(){ | |
566
a82c4eea402e
included string mapping tests for function and delegate
thomask
parents:
342
diff
changeset
|
12 alias byte function(int) func; |
342 | 13 TypeInfo ti = typeid(func); |
570 | 14 assert(!(ti is null)); |
342 | 15 assert(ti.tsize == func.sizeof); |
566
a82c4eea402e
included string mapping tests for function and delegate
thomask
parents:
342
diff
changeset
|
16 assert(ti.toString() == "byte(int)*"); |
342 | 17 return 0; |
18 } |