# HG changeset patch # User thomask # Date 1160117798 0 # Node ID 03cf19fff5415a9fd5aacac3679dbd88b30423fb # Parent deaf29e6f0370ddc81ae5fd6dc80d584415e6d80 Bruno Medeiros 2006-09-26 news:bug-368-3@http.d.puremagic.com/issues/ [Issue 368] New: "immediate"-function types allowed as the return type of functions. diff -r deaf29e6f037 -r 03cf19fff541 nocompile/t/typeof_12_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeof_12_A.d Fri Oct 06 06:56:38 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros +// @date@ 2006-09-26 +// @uri@ news:bug-368-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 368] New: "immediate"-function types allowed as the return type of functions. + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.typeof_12_A; + +void func(int a) { +} + +typeof(func) test() { + if(true) + throw new Exception(""); +} diff -r deaf29e6f037 -r 03cf19fff541 nocompile/t/typeof_12_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeof_12_B.d Fri Oct 06 06:56:38 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros +// @date@ 2006-09-26 +// @uri@ news:bug-368-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 368] New: "immediate"-function types allowed as the return type of functions. + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.typeof_12_B; + +void func(int a) { +} + +typeof(func) test() { +}