changeset 389:bd5c0f9ebec7

allowing thes passing of reference to a derived class as an inout function parameter would open up a huge hole in the typing system of the language Walter <walter@digitalmars.com> 2005-04-06 mail:001701c53ace$7e91de50$0200a8c0@colossus
author thomask
date Wed, 06 Apr 2005 18:23:29 +0000
parents ba4a13eb7774
children 0b6abb63f92d
files nocompile/cast_10.d run/cast_10.d
diffstat 2 files changed, 27 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/cast_10.d	Wed Apr 06 18:23:29 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Jarrett Billingsley <kb3ctd2@yahoo.com>
+// @date@	2005-01-09
+// @uri@	news:crshla$2io3$1@digitaldaemon.com
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2659
+
+// __DSTESS_ELINE__  25
+
+module dstress.nocompile.cast_10;
+
+class Parent{
+}
+
+class Child : Parent {
+}
+
+void test(inout Parent p){
+}
+
+int main(){
+	Child c = new Child();
+	test(c);
+	return 0;
+}
--- a/run/cast_10.d	Wed Apr 06 08:12:29 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	Jarrett Billingsley <kb3ctd2@yahoo.com>
-// @date@	2005-01-09
-// @uri@	news:crshla$2io3$1@digitaldaemon.com
-// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2659
-
-module dstress.run.cast_10;
-
-class Parent{
-}
-
-class Child : Parent {
-}
-
-void test(inout Parent p){
-}
-
-int main(){
-	Child c = new Child();
-	test(c);
-	return 0;
-}