[Issue 24791] pragma(msg, BasicType TypeSuffix) doesn't parse

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 11 08:53:27 UTC 2024


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

--- Comment #2 from Manu <turkeyman at gmail.com> ---
I don't really care for reasons; this is an obvious bug:

pragma(msg, int);  // > int
pragma(msg, int*); // > int*

alias X = int;
pragma(msg, X);    // > int
pragma(msg, X*);   // error!


Edge cases like this just randomly break meta-programming.
We especially depend on pragma(msg) to understand and debug meta-programming.

--


More information about the Digitalmars-d-bugs mailing list