[Issue 23797] Improve type-testing `is` expressions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 4 10:57:55 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=23797
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
Just to note that `module` and `package` (already accepted), `return` and
visibility should not be part of an `is` expression, because an `is` expression
is supposed to test whether something is a valid type. It's not to test
symbols. From the spec:
"An IsExpression is evaluated at compile time and is used to check if an
expression is a valid type."
--
More information about the Digitalmars-d-bugs
mailing list