# HG changeset patch # User thomask # Date 1114581146 0 # Node ID 4cbdf8397c8263b49dfc5619bdfc83ce84ac2f38 # Parent 9dfc177c0a1ffafd28f7bfada6940dadd61a7f82 template / private member Mike Parker 2005-04-25 news:d4i19u$12td$1@digitaldaemon.com diff -r 9dfc177c0a1f -r 4cbdf8397c82 run/protected_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/protected_01.d Wed Apr 27 05:52:26 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Mike Parker +// @date@ 2005-04-25 +// @uri@ news:d4i19u$12td$1@digitaldaemon.com + +module dstress.run.protected_01; + +template T(){ + protected int x; +} + +class MyClass{ + mixin T; +} + +int main(){ + MyClass c=new MyClass; + c.x = 1; + return 0; +} +