Mercurial > projects > dstress
changeset 651:fcca833f91c3
Carlos Santander B. <carlos8294@msn.com>
2004-07-12
http://www.digitalmars.com/d/archives/digitalmars/D/bugs/802.html
author | thomask |
---|---|
date | Sun, 04 Sep 2005 11:58:22 +0000 |
parents | 00901fbe5d03 |
children | ce232883eab5 |
files | compile/f/forward_reference_13_A.d compile/f/forward_reference_13_B.d compile/f/forward_reference_13_C.d compile/f/forward_reference_13_D.d |
diffstat | 4 files changed, 104 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/forward_reference_13_A.d Sun Sep 04 11:58:22 2005 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-07-12 +// @uri@ http://www.digitalmars.com/d/archives/digitalmars/D/bugs/802.html + +module dstress.compile.f.forward_reference_13_A; + +void bar(void delegate () dg){ + dg(); +} + +template Template(alias f){ + void caller(int i){ + bar (delegate { f(i); }); + } +} + +class A{ + void foo (int i) { + } + + mixin Template!(foo); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/forward_reference_13_B.d Sun Sep 04 11:58:22 2005 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-07-12 +// @uri@ http://www.digitalmars.com/d/archives/digitalmars/D/bugs/802.html + +module dstress.compile.f.forward_reference_13_B; + +void bar(void delegate () dg){ + dg(); +} + +class A{ + void foo (int i) { + } + + mixin Template!(foo); +} + +template Template(alias f){ + void caller(int i){ + bar (delegate { f(i); }); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/forward_reference_13_C.d Sun Sep 04 11:58:22 2005 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-07-12 +// @uri@ http://www.digitalmars.com/d/archives/digitalmars/D/bugs/802.html + +module dstress.compile.f.forward_reference_13_C; + +void bar(void delegate () dg){ + dg(); +} + +class A{ + mixin Template!(foo); + + void foo (int i) { + } +} + +template Template(alias f){ + void caller(int i){ + bar (delegate { f(i); }); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/forward_reference_13_D.d Sun Sep 04 11:58:22 2005 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-07-12 +// @uri@ http://www.digitalmars.com/d/archives/digitalmars/D/bugs/802.html + +module dstress.compile.f.forward_reference_13_D; + +void bar(void delegate () dg){ + dg(); +} + +template Template(alias f){ + void caller(int i){ + bar (delegate { f(i); }); + } +} + +class A{ + mixin Template!(foo); + + void foo (int i) { + } +}