[Issue 7372] (Regression git) wrong error: undefined identifier

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 26 12:26:01 PST 2012


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |INVALID


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2012-01-26 12:25:59 PST ---
This is not a bug.

>From the spec: "Unlike a template instantiation, a template mixin's body is
evaluated within the scope where the mixin appears, not where the template
declaration is defined."

The default for imports is private, so m1.bug is not visible to m.C.

-- 
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