[Issue 1514] mixin doesn't make the template to "function template"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 21 11:01:27 UTC 2019


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
This bug report is invalid. mytemp is not an eponymous template because it has
a single member that is the mixin. So when the call occurs the compiler first
needs to identify what you are trying to call, thus it finds the mytemp
template, but inside it there is no function, there's only a mixin => confusion
for the compiler. This cannot be fixed, because you would have to instantiate
the mixin before actually instantiating the template.

Closing as invalid.

--


More information about the Digitalmars-d-bugs mailing list