comparison 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
comparison
equal deleted inserted replaced
83:ee670dd808a8 87:b17640f0e4e8
165 if (!b.base.symtab || b.base.scope_ || b.base.inuse) 165 if (!b.base.symtab || b.base.scope_ || b.base.inuse)
166 { 166 {
167 //error("forward reference of base class %s", baseClass.toChars()); 167 //error("forward reference of base class %s", baseClass.toChars());
168 // Forward reference of base, try again later 168 // Forward reference of base, try again later
169 //printf("\ttry later, forward reference of base %s\n", b.base.toChars()); 169 //printf("\ttry later, forward reference of base %s\n", b.base.toChars());
170 scope_ = scx ? scx : new Scope(sc); 170 scope_ = scx ? scx : sc.clone();
171 scope_.setNoFree(); 171 scope_.setNoFree();
172 scope_.module_.addDeferredSemantic(this); 172 scope_.module_.addDeferredSemantic(this);
173 return; 173 return;
174 } 174 }
175 } 175 }