April 01, 2021
https://issues.dlang.org/show_bug.cgi?id=21788

          Issue ID: 21788
           Summary: __traits(identifier) on types should work like
                    .stringof instead of erroring
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: b2.temp@gmx.com

The code:

---
pragma(msg, __traits(identifier, void*));
---

gives:

> Error: argument `void*` has no identifier

If the argument of `__traits(identifier)` is a type it could just returns the `.stringof` of the argument.

--