[Issue 7077] mixin statements can invade the enclosing scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 29 02:16:38 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7077


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |yebblies at gmail.com


--- Comment #2 from yebblies <yebblies at gmail.com> 2013-07-29 19:16:31 EST ---
Nah, `mixin("X")` should behave as close as possible to `X`, and here it is
being injected into the wrong scope.  The bug is actually IfStatement not
creating a proper scope for the if-body.

https://github.com/D-Programming-Language/dmd/pull/2402

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list