changeset 944:eb7e3f644b18

Stewart Gordon <smjg_1998@yahoo.com> 2006-03-27 news:e08emq$n8l$1@digitaldaemon.com
author thomask
date Sun, 02 Apr 2006 11:53:50 +0000
parents 807744a6e42b
children 08dc6d2df0a4
files compile/o/overload_17_B.d compile/o/overload_17_C.d undefined/typedef_10_A.d undefined/typedef_10_B.d undefined/typedef_10_C.d undefined/typedef_10_D.d undefined/typedef_10_E.d undefined/typedef_10_F.d undefined/typedef_10_G.d undefined/typedef_10_H.d undefined/typedef_10_I.d
diffstat 11 files changed, 57 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/overload_17_B.d	Sun Apr 02 11:53:50 2006 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg_1998@yahoo.com>
+// @date@	2005-12-12
+// @uri@	news:dnjnqe$16sv$1@digitaldaemon.com
+
+module /*dstress.*/compile.o.overload_17_B;
+import /*dstress.*/compile.o.overload_17_C;
+
+class Parent {
+	Parent test() {
+		return new Parent();
+	}
+}
+
+class Son : Parent {
+	override Daughter test() {
+		return new Daughter();
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/overload_17_C.d	Sun Apr 02 11:53:50 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon <smjg_1998@yahoo.com>
+// @date@	2005-12-12
+// @uri@	news:dnjnqe$16sv$1@digitaldaemon.com
+
+module /*dstress.*/compile.o.overload_17_C;
+import /*dstress.*/compile.o.overload_17_B;
+
+class Daughter : Parent {
+	override Son test() {
+		return new Son();
+	}
+}
--- a/undefined/typedef_10_A.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_A.d	Sun Apr 02 11:53:50 2006 +0000
@@ -21,4 +21,6 @@
 	Int2 i2;
 
 	static assert (is(typeof(i1 + i2) == int));
+
+	return 0;
 }
--- a/undefined/typedef_10_B.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_B.d	Sun Apr 02 11:53:50 2006 +0000
@@ -19,4 +19,6 @@
 	int i2;
 
 	static assert (is(typeof(i1 + i2) == int));
+
+	return 0;
 }
--- a/undefined/typedef_10_C.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_C.d	Sun Apr 02 11:53:50 2006 +0000
@@ -19,4 +19,6 @@
 	Int2 i2;
 
 	static assert (is(typeof(i1 + i2) == int));
+
+	return 0;
 }
--- a/undefined/typedef_10_D.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_D.d	Sun Apr 02 11:53:50 2006 +0000
@@ -19,4 +19,6 @@
 	Int1 i1;
 
 	static assert (is(typeof(i1 + 42) == int));
+
+	return 0;
 }
--- a/undefined/typedef_10_E.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_E.d	Sun Apr 02 11:53:50 2006 +0000
@@ -18,4 +18,6 @@
 	Int2 i2;
 
 	static assert (is(typeof(42 + i2) == int));
+
+	return 0;
 }
--- a/undefined/typedef_10_F.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_F.d	Sun Apr 02 11:53:50 2006 +0000
@@ -15,4 +15,6 @@
 	long l;
 
 	static assert (is(typeof(i + l) == long));
+
+	return 0;
 }
--- a/undefined/typedef_10_G.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_G.d	Sun Apr 02 11:53:50 2006 +0000
@@ -19,4 +19,6 @@
 	Int i;
 
 	static assert (is(typeof(l + i) == long));
+
+	return 0;
 }
--- a/undefined/typedef_10_H.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_H.d	Sun Apr 02 11:53:50 2006 +0000
@@ -18,5 +18,7 @@
 	Int i;
 	short s;
 
-	static assert (is(typeof(i + s) == long));
+	static assert (is(typeof(i + s) == int));
+
+	return 0;
 }
--- a/undefined/typedef_10_I.d	Sun Apr 02 11:53:42 2006 +0000
+++ b/undefined/typedef_10_I.d	Sun Apr 02 11:53:50 2006 +0000
@@ -19,4 +19,6 @@
 	Int i;
 
 	static assert (is(typeof(s + i) == int));
+
+	return 0;
 }