[Issue 24869] Qualifier dropped from return type when AliasSeq is indexed with template argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 21 18:12:36 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24869
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
> ref int get() const => n;
Sorry, you're right, ignore comment 1. That should be `ref const(int)`.
It's weird as the function prototype type is OK:
ref const(AliasSeq!(int)[0]) g() const;
pragma(msg, typeof(g)); // const ref const(int)()
--
More information about the Digitalmars-d-bugs
mailing list