# HG changeset patch # User thomask # Date 1185216050 0 # Node ID 5e981cf4a7d57358b19606f03418e45b376b1d67 # Parent f425ddcbbcd6309d961b80aa46c7549dc67c3c1a Christian Kamm 2007-04-24 http://d.puremagic.com/issues/show_bug.cgi?id=540 diff -r f425ddcbbcd6 -r 5e981cf4a7d5 run/t/template_64_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_64_A.d Mon Jul 23 18:40:50 2007 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Christian Kamm +// @date@ 2007-04-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=540 + + +module dstress.run.t.template_64_A; + +template A(){ + static T foo(T)(T t){ + return t + 1; + } +} + +struct Bar{ + mixin A!() a; +} + +int main(){ + if(2 != A!().foo(1)){ + assert(0); + } + return 0; +} diff -r f425ddcbbcd6 -r 5e981cf4a7d5 run/t/template_64_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_64_B.d Mon Jul 23 18:40:50 2007 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Christian Kamm +// @date@ 2007-04-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=540 + + +module dstress.run.t.template_64_B; + +template A(){ + static T foo(T)(T t){ + return t + 1; + } +} + +struct Bar{ + mixin A!() a; +} + +int main(){ + if(2 != Bar.a.foo!(int)(1)){ + assert(0); + } + return 0; +} diff -r f425ddcbbcd6 -r 5e981cf4a7d5 run/t/template_64_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_64_C.d Mon Jul 23 18:40:50 2007 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Christian Kamm +// @date@ 2007-04-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=540 + + +module dstress.run.t.template_64_C; + +template A(){ + static T foo(T)(T t){ + return t + 1; + } +} + +struct Bar{ + mixin A!() a; +} + +int main(){ + if(2 != Bar.a.foo(1)){ + assert(0); + } + return 0; +}