Mercurial > projects > ddmd
comparison dmd/FuncDeclaration.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 | 23280d154c5b |
comparison
equal
deleted
inserted
replaced
83:ee670dd808a8 | 87:b17640f0e4e8 |
---|---|
838 | 838 |
839 Ldone: | 839 Ldone: |
840 /* Save scope for possible later use (if we need the | 840 /* Save scope for possible later use (if we need the |
841 * function internals) | 841 * function internals) |
842 */ | 842 */ |
843 scope_ = new Scope(sc); | 843 scope_ = sc.clone(); |
844 scope_.setNoFree(); | 844 scope_.setNoFree(); |
845 return; | 845 return; |
846 | 846 |
847 Lassignerr: | 847 Lassignerr: |
848 if (sd) | 848 if (sd) |