Mercurial > projects > dstress
changeset 1373:7231246f20c2
[Issue 764] (typeof(o)).classinfo causes parser error
Dan <ddaglas@gmail.com>
2006-12-28
http://d.puremagic.com/issues/show_bug.cgi?id=764
author | thomask |
---|---|
date | Tue, 27 Feb 2007 16:42:51 +0000 |
parents | e5ceb8a4792c |
children | 359e658d128f |
files | run/t/typeof_16_A.d run/t/typeof_16_B.d |
diffstat | 2 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeof_16_A.d Tue Feb 27 16:42:51 2007 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dan <ddaglas@gmail.com> +// @date@ 2006-12-28 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=764 +// @desc@ [Issue 764] (typeof(o)).classinfo causes parser error + +module dstress.run.t.typeof_16_A; + +int main() { + Object o = new Object(); + char[] name = (typeof(o)).classinfo.name; + + if("object.Object" != name){ + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeof_16_B.d Tue Feb 27 16:42:51 2007 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dan <ddaglas@gmail.com> +// @date@ 2006-12-28 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=764 +// @desc@ [Issue 764] (typeof(o)).classinfo causes parser error + +module dstress.run.t.typeof_16_B; + +int main() { + Object o = new Object(); + char[] name = typeof(o).classinfo.name; + + if("object.Object" != name){ + assert(0); + } + return 0; +}