diff dmd/Type.d @ 87:b17640f0e4e8

Fixed a bug with a Scope.this(Scope enclosing) being called instead of Scope.clone() method (as a copy ctor replacement)
author korDen
date Mon, 30 Aug 2010 19:56:27 +0400
parents 43073c7c7769
children 3a0b150c9841 ae5b11064a9a
line wrap: on
line diff
--- a/dmd/Type.d	Mon Aug 30 18:42:04 2010 +0400
+++ b/dmd/Type.d	Mon Aug 30 19:56:27 2010 +0400
@@ -1724,14 +1724,14 @@
 			}
 
 			e = new StringExp(loc, s, 'c');
-			Scope sc = new Scope();
+			scope Scope sc = new Scope();
 			e = e.semantic(sc);
 		}
 		else if (ident is Id.stringof_)
 		{	
 			string s = toChars();
 			e = new StringExp(loc, s, 'c');
-			Scope sc = new Scope();
+			scope Scope sc = new Scope();
 			e = e.semantic(sc);
 		}
 		else
@@ -1822,7 +1822,7 @@
 		{		
 			string s = e.toChars();
 			e = new StringExp(e.loc, s, 'c');
-			Scope sc2 = new Scope(); ///
+			scope Scope sc2 = new Scope(); ///
 			e = e.semantic(sc2);
 			return e;
 		}