[Issue 24516] qualifiers lost when tupleof is aliased
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 1 14:43:24 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24516
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
> S.tupleof
I don't think it makes sense to allow `tupleof` to be a type property. It
should be instance only. The spec does not mention its use on a type.
https://dlang.org/spec/class.html#tupleof
Also in dmd/typesem.d, dotExp:
```d
else if (ident == Id._tupleof)
{
if (e.isTypeExp())
{
error(e.loc, "`.tupleof` cannot be used on type `%s`",
mt.toChars);
return ErrorExp.get();
}
```
For some reason that is not being triggered.
--
More information about the Digitalmars-d-bugs
mailing list