changeset 489:4cbdf8397c82

template / private member Mike Parker <aldacron71@yahoo.com> 2005-04-25 news:d4i19u$12td$1@digitaldaemon.com
author thomask
date Wed, 27 Apr 2005 05:52:26 +0000
parents 9dfc177c0a1f
children d091ff903fa4
files run/protected_01.d
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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 <aldacron71@yahoo.com>
+// @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;
+}
+