Mercurial > projects > dstress
changeset 1011:5b0ba71b22a9
fixed "deprecated" typo
author | thomask |
---|---|
date | Fri, 19 May 2006 17:45:10 +0000 |
parents | 731f93c13ad6 |
children | 2bfa2f830db5 |
files | run/s/static_33_A.d run/s/static_33_B.d |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/run/s/static_33_A.d Fri May 19 17:44:18 2006 +0000 +++ b/run/s/static_33_A.d Fri May 19 17:45:10 2006 +0000 @@ -4,10 +4,12 @@ module dstress.run.s.static_33_A; -deprecated x = 4.0; +static x = 4.0; int main(){ - assert(typeid(typeof(x)).toString() == "double"); + if(typeid(typeof(x)).toString() != "double"){ + assert(0); + } return 0; }
--- a/run/s/static_33_B.d Fri May 19 17:44:18 2006 +0000 +++ b/run/s/static_33_B.d Fri May 19 17:45:10 2006 +0000 @@ -4,10 +4,12 @@ module dstress.run.s.static_33_B; -deprecated x = 4; +static x = 4; int main(){ - assert(typeid(typeof(x)).toString() == "int"); + if(typeid(typeof(x)).toString() != "int"){ + assert(0); + } return 0; }