[Issue 16584] Local import ineffective for mixin templates

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 3 15:23:51 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16584

m.bierlee at lostmoment.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from m.bierlee at lostmoment.com ---
>From the documentation:
"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."

So this is actually by design. Closed the issue.

--


More information about the Digitalmars-d-bugs mailing list