digitalmars.D.bugs - [Issue 21788] New: __traits(identifier) on types should work like
- d-bugmail puremagic.com (22/23) Apr 01 2021 https://issues.dlang.org/show_bug.cgi?id=21788
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 identifierIf the argument of `__traits(identifier)` is a type it could just returns the `.stringof` of the argument. --
Apr 01 2021