Mercurial > projects > dstress
changeset 1174:70a6573ba83d
[Issue 369] New: "immediate"-function types allowed as part of delegate/function types.
Bruno Medeiros <brunodomedeiros+bugz@gmail.com>
2006-09-26
news:bug-369-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Fri, 06 Oct 2006 06:56:44 +0000 |
parents | 03cf19fff541 |
children | e7e487c06620 |
files | nocompile/t/typeof_12_C.d nocompile/t/typeof_12_D.d |
diffstat | 2 files changed, 42 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeof_12_C.d Fri Oct 06 06:56:44 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <brunodomedeiros+bugz@gmail.com> +// @date@ 2006-09-26 +// @uri@ news:bug-369-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 369] New: "immediate"-function types allowed as part of delegate/function types. + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.typeof_12_C; + +void func() { +} + +typeof(func) delegate() dg2; + +void test() { + dg2(); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeof_12_D.d Fri Oct 06 06:56:44 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros <brunodomedeiros+bugz@gmail.com> +// @date@ 2006-09-26 +// @uri@ news:bug-369-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 369] New: "immediate"-function types allowed as part of delegate/function types. + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.typeof_12_D; + +void func() { +} + +typeof(func) function() dg2; + +void test() { + dg2(); +}