Mercurial > projects > ddmd
comparison dmd/ProtDeclaration.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 |
---|---|
33 { | 33 { |
34 Scope newsc = sc; | 34 Scope newsc = sc; |
35 if (sc.protection != protection || sc.explicitProtection != 1) | 35 if (sc.protection != protection || sc.explicitProtection != 1) |
36 { | 36 { |
37 // create new one for changes | 37 // create new one for changes |
38 newsc = new Scope(sc); | 38 newsc = sc.clone(); |
39 newsc.flags &= ~SCOPE.SCOPEfree; | 39 newsc.flags &= ~SCOPE.SCOPEfree; |
40 newsc.protection = protection; | 40 newsc.protection = protection; |
41 newsc.explicitProtection = 1; | 41 newsc.explicitProtection = 1; |
42 } | 42 } |
43 | 43 |