[Issue 24229] Parser accepts fundamental types as primary expressions without dot identifier

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 8 15:41:57 UTC 2024


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #1 from Nick Treleaven <nick at geany.org> ---
> instead it does and ends up with a semantic-time error

Is that a problem? That was intentional to fix issue 9848. Though that also
meant things like this work:

alias T = int;
pragma(msg, int[T]);

Before dmd 2.102 that was a parse error.

--


More information about the Digitalmars-d-bugs mailing list