Mercurial > projects > dstress
changeset 566:a82c4eea402e
included string mapping tests for function and delegate
author | thomask |
---|---|
date | Sat, 04 Jun 2005 18:36:29 +0000 |
parents | 0c6353267963 |
children | 4c83f19a8301 |
files | run/typeid_84.d run/typeid_85.d |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/run/typeid_84.d Sat Jun 04 18:34:39 2005 +0000 +++ b/run/typeid_84.d Sat Jun 04 18:36:29 2005 +0000 @@ -9,9 +9,10 @@ module dstress.run.typeid_84; int main(){ - alias void function() func; + alias byte function(int) func; TypeInfo ti = typeid(func); assert(ti !== null); assert(ti.tsize == func.sizeof); + assert(ti.toString() == "byte(int)*"); return 0; }
--- a/run/typeid_85.d Sat Jun 04 18:34:39 2005 +0000 +++ b/run/typeid_85.d Sat Jun 04 18:36:29 2005 +0000 @@ -9,9 +9,10 @@ module dstress.run.typeid_85; int main(){ - alias int delegate() del; + alias byte delegate(int) del; TypeInfo ti = typeid(del); assert(ti !== null); assert(ti.tsize == del.sizeof); + assert(ti.toString()=="byte delegate(int)"); return 0; }