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

Simen Kjaeraas <simen.kja...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |simen.kja...@gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from Simen Kjaeraas <simen.kja...@gmail.com> ---
An alias is not a real identifier - thinks of it more as like a pointer to the
real identifier. This can be verified by doing the exact same as you did in
main.d, in mod.d:

auto identity(T)(T t) { return t; }
alias identityInt = identity!int;
static assert(__traits(identifier, identityInt) == "identity");

--

Reply via email to