Mercurial > projects > dstress
view nocompile/m/mixin_19_F.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
parents | 81222734adf3 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <nail-mail@mail.ru> // @date@ 2006-04-04 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=83 // __DSTRESS_ELINE__ 24 module dstress.nocompile.m.mixin_19_F; int state; template T1(){ alias T2!().myproperty myproperty; int myproperty(){ return state; } } template T2(){ alias T1!().myproperty myproperty; void myproperty(int x){ state = x; } } class C(alias M1, alias M2){ mixin T1!(); mixin T2!(); } void main(){ auto c = new C!(T1, T2)(); c.myproperty = 3; }