[Issue 11079] Attributes for template functions should be visible when used with traits

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 27 13:03:43 PDT 2014


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

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

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

--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
Walter's comment from here:

https://github.com/D-Programming-Language/dmd/pull/3501#issuecomment-41484446

> Should it work?
> 
> No. It's not a function until it is instantiated. In fact, the attributes cannot be determined until it is instantiated, because attributes are inferred on function templates.

So I'm marking this as invalid. But maybe a set of better docs need to be made
for the traits page.

--


More information about the Digitalmars-d-bugs mailing list