comparison dmd/TemplateDeclaration.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 39648eb578f6
comparison
equal deleted inserted replaced
83:ee670dd808a8 87:b17640f0e4e8
208 } 208 }
209 209
210 /* Remember Scope for later instantiations, but make 210 /* Remember Scope for later instantiations, but make
211 * a copy since attributes can change. 211 * a copy since attributes can change.
212 */ 212 */
213 this.scope_ = new Scope(sc); /// A light copy 213 this.scope_ = sc.clone();
214 this.scope_.setNoFree(); 214 this.scope_.setNoFree();
215 215
216 // Set up scope for parameters 216 // Set up scope for parameters
217 ScopeDsymbol paramsym = new ScopeDsymbol(); 217 ScopeDsymbol paramsym = new ScopeDsymbol();
218 paramsym.parent = sc.parent; 218 paramsym.parent = sc.parent;