diff run/static_17.d @ 122:bf7b8bf72262

Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
author thomask
date Tue, 09 Nov 2004 11:04:36 +0000
parents
children a33ad7189d21
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/static_17.d	Tue Nov 09 11:04:36 2004 +0000
@@ -0,0 +1,23 @@
+// @author@ 	Stewart Gordon <smjg_1998@yahoo.com>
+// @date@	2004-11-09
+// @uri@	news://cmq61m$5rn$1@digitaldaemon.com
+// @url@	nttp://digitalmars.com/digitalmars.D.bugs:2218
+
+module dstress.run.static_17;
+
+class MyClass{
+	static{
+		int foo(){
+			return 1;
+		}
+	}
+
+	static int bar(){
+		return foo()+3;
+	}
+}
+
+int main(){
+	assert(MyClass.bar()==4);
+	return 0;
+}