changeset 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 cfcbb6691b2d
children e67132f1979e
files run/static_17.d run/static_18.d
diffstat 2 files changed, 48 insertions(+), 0 deletions(-) [+]
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;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/static_18.d	Tue Nov 09 11:04:36 2004 +0000
@@ -0,0 +1,25 @@
+// @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
+
+// __DSTRESS_DFLAGS__ -d
+
+module dstress.run.static_18;
+
+class MyClass{
+	static{
+		deprecated int foo(){
+			return 1;
+		}
+	}
+
+	static deprecated int bar(){
+		return foo()+3;
+	}
+}
+
+int main(){
+	assert(MyClass.bar()==4);
+	return 0;
+}