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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to