Mercurial > projects > dstress
view nocompile/m/mixin_19_D.d @ 957:9aaa845bab65
<nail-mail@mail.ru>
2006-04-04
news:bug-83-3@http.d.puremagic.com/bugzilla/
author | thomask |
---|---|
date | Mon, 10 Apr 2006 04:59:12 +0000 |
parents | |
children | 81222734adf3 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <nail-mail@mail.ru> // @date@ 2006-04-04 // @uri@ news:bug-83-3@http.d.puremagic.com/bugzilla/ // __DSTRESS_ELINE__ 24 module dstress.nocompile.m.mixin_19_D; 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{ mixin T2!(); } void main(){ auto c = new C(); c.myproperty = 3; }