diff dmd/InterfaceDeclaration.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 ad4792a1cfd6
children 37b95c347975
line wrap: on
line diff
--- a/dmd/InterfaceDeclaration.d	Mon Aug 30 18:42:04 2010 +0400
+++ b/dmd/InterfaceDeclaration.d	Mon Aug 30 19:56:27 2010 +0400
@@ -167,7 +167,7 @@
 					//error("forward reference of base class %s", baseClass.toChars());
 					// Forward reference of base, try again later
 					//printf("\ttry later, forward reference of base %s\n", b.base.toChars());
-					scope_ = scx ? scx : new Scope(sc);
+					scope_ = scx ? scx : sc.clone();
 					scope_.setNoFree();
 					scope_.module_.addDeferredSemantic(this);
 					return;