changeset 133:e8a741997ccf dmd2037

Fix update bugs
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Sat, 11 Sep 2010 01:02:18 +0100
parents c494af1dba80
children 4251f96733f4
files dmd/CatExp.d dmd/TypeInfoStructDeclaration.d
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/CatExp.d	Fri Sep 10 19:14:09 2010 +0100
+++ b/dmd/CatExp.d	Sat Sep 11 01:02:18 2010 +0100
@@ -67,6 +67,7 @@
 				e2.implicitConvTo(tb1next) >= MATCHconvert)
 			{
 				e2 = e2.implicitCastTo(sc, tb1next);
+                type = tb1next.arrayOf();
 				if (tb2.ty == Tarray)
 				{	
 					// Make e2 into [e2]
@@ -79,6 +80,7 @@
 				e1.implicitConvTo(tb2next) >= MATCHconvert)
 			{
 				e1 = e1.implicitCastTo(sc, tb2next);
+                type = tb2next.arrayOf();
 				if (tb1.ty == Tarray)
 				{	
 					// Make e1 into [e1]
--- a/dmd/TypeInfoStructDeclaration.d	Fri Sep 10 19:14:09 2010 +0100
+++ b/dmd/TypeInfoStructDeclaration.d	Sat Sep 11 01:02:18 2010 +0100
@@ -99,7 +99,7 @@
 		TypeFunction tfeqptr;
 		{	
 			// bool opEqual(const T*) const;
-			scope Scope sc = new Scope();
+			scope sc = new Scope();
 			auto arguments = new Parameters;
 		version (STRUCTTHISREF) {
 			// arg type is ref const T
@@ -116,7 +116,7 @@
         }
 
         {
-	        Scope sc;
+	        scope sc = new Scope;
 	        auto arguments = new Parameters;
 version(STRUCTTHISREF) {
 	        // arg type is ref const T