[Issue 22156] Can't use all-types slice of not-all-types AliasSeq as type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 28 17:54:03 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=22156
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
Indexing such a sequence compiles fine, so slicing not working is inconsistent:
AliasSeq!(int, 0)[0] a; // OK
AliasSeq!(int, char, 0)[0..2] b; // NG
AliasSeq!(int, char)[0..2] c; // OK
--
More information about the Digitalmars-d-bugs
mailing list