# HG changeset patch # User thomask # Date 1148328907 0 # Node ID cddb4604d6d7936c598050d0fbb951ba2f29bd1d # Parent 01533f91d19a6cd8051c2eec128308bf56366dc7 Interfaces + mixins => problem Tom S 2006-05-02 news:e37iiv$482$1@digitaldaemon.com diff -r 01533f91d19a -r cddb4604d6d7 nocompile/m/mixin_22_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/m/mixin_22_A.d Mon May 22 20:15:07 2006 +0000 @@ -0,0 +1,32 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ om S +// @date@ 2006-05-02 +// @uri@ news:e37iiv$482$1@digitaldaemon.com + +module dstress.nocompile.m.mixin_22_A; + +interface I{ + void foo(); +} + +template T1(){ + void foo(){ + } +} + +template T2(){ + void foo(){ + } +} + +class C : I{ + mixin T1; + mixin T2; +} + +void main(){ + C c = new C(); +} diff -r 01533f91d19a -r cddb4604d6d7 nocompile/m/mixin_22_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/m/mixin_22_B.d Mon May 22 20:15:07 2006 +0000 @@ -0,0 +1,32 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tom S +// @date@ 2006-05-02 +// @uri@ news:e37iiv$482$1@digitaldaemon.com + +module dstress.nocompile.m.mixin_22_B; + +interface I{ + void foo(); +} + +template T1(){ + void foo(){ + } +} + +template T2(){ + void foo(){ + } +} + +class C : I{ + mixin T1!() t1; + mixin T2!() t2; +} + +void main(){ + C c = new C(); +} diff -r 01533f91d19a -r cddb4604d6d7 nocompile/m/mixin_22_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/m/mixin_22_C.d Mon May 22 20:15:07 2006 +0000 @@ -0,0 +1,32 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tom S +// @date@ 2006-05-02 +// @uri@ news:e37iiv$482$1@digitaldaemon.com + +module dstress.nocompile.m.mixin_22_C; + +interface I{ + void foo(); +} + +template T1(){ + void foo(){ + } +} + +template T2(){ + void foo(){ + } +} + +class C : I{ + mixin T1 t1; + mixin T2 t2; +} + +void main(){ + C c = new C(); +} diff -r 01533f91d19a -r cddb4604d6d7 nocompile/m/mixin_22_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/m/mixin_22_D.d Mon May 22 20:15:07 2006 +0000 @@ -0,0 +1,36 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tom S +// @date@ 2006-05-02 +// @uri@ news:e37iiv$482$1@digitaldaemon.com + +module dstress.nocompile.m.mixin_22_D; + +interface I{ + void foo(); +} + +template T1(){ + void foo(){ + } +} + +template T2(){ + void foo(){ + } +} + +class C : I{ + mixin T1 t1; + mixin T2 t2; +} + +int main(){ + C c = new C(); + I i = c; + i.foo(); + + return 0; +}